@@ -33,15 +33,18 @@ console.log(Config.value);
33
33
"fileInfos" : {
34
34
"../../../../a/lib/lib.d.ts" : {
35
35
"version" : "3858781397-/// <reference no-default-lib=\"true\"/>\ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array<T> { length: number; [n: number]: T; }\ninterface ReadonlyArray<T> {}\ndeclare const console: { log(msg: any): void; };" ,
36
- "signature" : "3858781397-/// <reference no-default-lib=\"true\"/>\ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array<T> { length: number; [n: number]: T; }\ninterface ReadonlyArray<T> {}\ndeclare const console: { log(msg: any): void; };"
36
+ "signature" : "3858781397-/// <reference no-default-lib=\"true\"/>\ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array<T> { length: number; [n: number]: T; }\ninterface ReadonlyArray<T> {}\ndeclare const console: { log(msg: any): void; };" ,
37
+ "affectsGlobalScope" : true
37
38
} ,
38
39
"./globals.d.ts" : {
39
40
"version" : "-6314871648-declare namespace Config { const value: string;} " ,
40
- "signature" : "-6314871648-declare namespace Config { const value: string;} "
41
+ "signature" : "-6314871648-declare namespace Config { const value: string;} " ,
42
+ "affectsGlobalScope" : true
41
43
} ,
42
44
"./index.ts" : {
43
45
"version" : "5371023861-console.log(Config.value);" ,
44
- "signature" : "5381-"
46
+ "signature" : "5381-" ,
47
+ "affectsGlobalScope" : true
45
48
}
46
49
} ,
47
50
"options" : {
@@ -104,14 +107,63 @@ exitCode:: ExitStatus.undefined
104
107
105
108
Change ::
106
109
110
+ //// [/users/username/projects/project/index.js] file written with same contents
111
+ //// [/users/username/projects/project/tsconfig.tsbuildinfo]
112
+ {
113
+ "program" : {
114
+ "fileInfos" : {
115
+ "../../../../a/lib/lib.d.ts" : {
116
+ "version" : "3858781397-/// <reference no-default-lib=\"true\"/>\ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array<T> { length: number; [n: number]: T; }\ninterface ReadonlyArray<T> {}\ndeclare const console: { log(msg: any): void; };" ,
117
+ "signature" : "3858781397-/// <reference no-default-lib=\"true\"/>\ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array<T> { length: number; [n: number]: T; }\ninterface ReadonlyArray<T> {}\ndeclare const console: { log(msg: any): void; };" ,
118
+ "affectsGlobalScope" : true
119
+ } ,
120
+ "./index.ts" : {
121
+ "version" : "5371023861-console.log(Config.value);" ,
122
+ "signature" : "5381-" ,
123
+ "affectsGlobalScope" : true
124
+ }
125
+ } ,
126
+ "options" : {
127
+ "incremental" : true ,
128
+ "watch" : true ,
129
+ "configFilePath" : "./tsconfig.json"
130
+ } ,
131
+ "referencedMap" : { } ,
132
+ "exportedModulesMap" : { } ,
133
+ "semanticDiagnosticsPerFile" : [
134
+ "../../../../a/lib/lib.d.ts" ,
135
+ [
136
+ "./index.ts" ,
137
+ [
138
+ {
139
+ "file" : "./index.ts" ,
140
+ "start" : 12 ,
141
+ "length" : 6 ,
142
+ "messageText" : "Cannot find name 'Config'." ,
143
+ "category" : 1 ,
144
+ "code" : 2304
145
+ }
146
+ ]
147
+ ]
148
+ ]
149
+ } ,
150
+ "version" : "FakeTSVersion"
151
+ }
152
+
107
153
//// [/users/username/projects/project/globals.d.ts] deleted
108
154
109
155
Output ::
110
156
>> Screen clear
111
157
[ [ 90 m12 :00 :30 AM [ 0 m ] Starting compilation in watch mode ...
112
158
113
159
114
- [ [ 90 m12 :00 :31 AM [ 0 m ] Found 0 errors . Watching for file changes .
160
+ [ 96 mindex . ts [ 0 m :[ 93 m1 [ 0 m :[ 93 m13 [ 0 m - [ 91 merror [ 0 m [ 90 m TS2304 : [ 0 mCannot find name 'Config' .
161
+
162
+ [ 7 m1 [ 0 m console . log ( Config . value ) ;
163
+ [ 7 m [ 0 m [ 91 m ~ ~ ~ ~ ~ ~ [ 0 m
164
+
165
+
166
+ [ [ 90 m12 :00 :37 AM [ 0 m ] Found 1 error . Watching for file changes .
115
167
116
168
117
169
@@ -122,6 +174,7 @@ Program files::
122
174
/ users / username / projects / project / index . ts
123
175
124
176
Semantic diagnostics in builder refreshed for ::
177
+ / users / username / projects / project / index . ts
125
178
126
179
WatchedFiles ::
127
180
/ users / username / projects / project / tsconfig . json :
0 commit comments