Skip to content

Commit 197aaef

Browse files
TypeScript Botsheetalkamat
TypeScript Bot
andauthoredJun 1, 2022
Cherry-pick PR #49246 into release-4.7 (#49250)
Component commits: b846905 Add failing test 66d51e5 Fix the implicit glob key so that recursive keys are not differing just by directory seperator Fixes #49078 f93951f Reset the reload level once program is loaded Co-authored-by: Sheetal Nandi <[email protected]>
1 parent 3551935 commit 197aaef

File tree

5 files changed

+432
-1
lines changed

5 files changed

+432
-1
lines changed
 

Diff for: ‎src/compiler/commandLineParser.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3542,7 +3542,7 @@ namespace ts {
35423542
}
35433543
if (isImplicitGlob(spec.substring(spec.lastIndexOf(directorySeparator) + 1))) {
35443544
return {
3545-
key: useCaseSensitiveFileNames ? spec : toFileNameLowerCase(spec),
3545+
key: removeTrailingDirectorySeparator(useCaseSensitiveFileNames ? spec : toFileNameLowerCase(spec)),
35463546
flags: WatchDirectoryFlags.Recursive
35473547
};
35483548
}

Diff for: ‎src/compiler/watchPublic.ts

+1
Original file line numberDiff line numberDiff line change
@@ -700,6 +700,7 @@ namespace ts {
700700

701701
function reloadFileNamesFromConfigFile() {
702702
writeLog("Reloading new file names and options");
703+
reloadLevel = ConfigFileProgramReloadLevel.None;
703704
rootFileNames = getFileNamesFromConfigSpecs(compilerOptions.configFile!.configFileSpecs!, getNormalizedAbsolutePath(getDirectoryPath(configFileName), currentDirectory), compilerOptions, parseConfigFileHost, extraFileExtensions);
704705
if (updateErrorForNoInputFiles(rootFileNames, getNormalizedAbsolutePath(configFileName, currentDirectory), compilerOptions.configFile!.configFileSpecs!, configFileParsingDiagnostics!, canConfigFileJsonReportNoInputFiles)) {
705706
hasChangedConfigFileParsingErrors = true;

Diff for: ‎src/testRunner/unittests/config/tsconfigParsing.ts

+9
Original file line numberDiff line numberDiff line change
@@ -421,5 +421,14 @@ namespace ts {
421421
const parsedCommand = parseJsonConfigFileContent(parsed.config, sys, "/foo.bar");
422422
assert.deepEqual(parsedCommand.wildcardDirectories, { "/foo.bar/src": WatchDirectoryFlags.Recursive });
423423
});
424+
425+
it("correctly parses wild card directories from implicit glob when two keys differ only in directory seperator", () => {
426+
const parsed = parseConfigFileTextToJson("/foo.bar/tsconfig.json", JSON.stringify({
427+
include: ["./", "./**/*.json"]
428+
}));
429+
430+
const parsedCommand = parseJsonConfigFileContent(parsed.config, sys, "/foo");
431+
assert.deepEqual(parsedCommand.wildcardDirectories, { "/foo": WatchDirectoryFlags.Recursive });
432+
});
424433
});
425434
}

Diff for: ‎src/testRunner/unittests/tscWatch/programUpdates.ts

+33
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,39 @@ export class A {
616616
]
617617
});
618618

619+
verifyTscWatch({
620+
scenario,
621+
subScenario: "correctly parses wild card directories from implicit glob when two keys differ only in directory seperator",
622+
commandLineArgs: ["-w", "--extendedDiagnostics"],
623+
sys: () => {
624+
const file1 = {
625+
path: `${projectRoot}/f1.ts`,
626+
content: "export const x = 1"
627+
};
628+
const file2 = {
629+
path: `${projectRoot}/f2.ts`,
630+
content: "export const y = 1"
631+
};
632+
const configFile = {
633+
path: `${projectRoot}/tsconfig.json`,
634+
content: JSON.stringify({ compilerOptions: { composite: true }, include: ["./", "./**/*.json"] })
635+
};
636+
return createWatchedSystem([file1, file2, libFile, configFile], { currentDirectory: projectRoot });
637+
},
638+
changes: [
639+
{
640+
caption: "Add new file",
641+
change: sys => sys.writeFile(`${projectRoot}/new-file.ts`, "export const z = 1;"),
642+
timeouts: sys => sys.checkTimeoutQueueLengthAndRun(1),
643+
},
644+
{
645+
caption: "Import new file",
646+
change: sys => sys.prependFile(`${projectRoot}/f1.ts`, `import { z } from "./new-file";`),
647+
timeouts: sys => sys.checkTimeoutQueueLengthAndRun(1),
648+
}
649+
]
650+
});
651+
619652
verifyTscWatch({
620653
scenario,
621654
subScenario: "can correctly update configured project when set of root files has changed through include",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,388 @@
1+
Input::
2+
//// [/user/username/projects/myproject/f1.ts]
3+
export const x = 1
4+
5+
//// [/user/username/projects/myproject/f2.ts]
6+
export const y = 1
7+
8+
//// [/a/lib/lib.d.ts]
9+
/// <reference no-default-lib="true"/>
10+
interface Boolean {}
11+
interface Function {}
12+
interface CallableFunction {}
13+
interface NewableFunction {}
14+
interface IArguments {}
15+
interface Number { toExponential: any; }
16+
interface Object {}
17+
interface RegExp {}
18+
interface String { charAt: any; }
19+
interface Array<T> { length: number; [n: number]: T; }
20+
21+
//// [/user/username/projects/myproject/tsconfig.json]
22+
{"compilerOptions":{"composite":true},"include":["./","./**/*.json"]}
23+
24+
25+
/a/lib/tsc.js -w --extendedDiagnostics
26+
Output::
27+
[12:00:23 AM] Starting compilation in watch mode...
28+
29+
Current directory: /user/username/projects/myproject CaseSensitiveFileNames: false
30+
FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file
31+
Synchronizing program
32+
CreatingProgramWith::
33+
roots: ["/user/username/projects/myproject/f1.ts","/user/username/projects/myproject/f2.ts"]
34+
options: {"composite":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"}
35+
FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/f1.ts 250 undefined Source file
36+
FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/f2.ts 250 undefined Source file
37+
FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 undefined Source file
38+
DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots
39+
Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots
40+
[12:00:34 AM] Found 0 errors. Watching for file changes.
41+
42+
DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 1 undefined Wild card directory
43+
Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 1 undefined Wild card directory
44+
45+
46+
Program root files: ["/user/username/projects/myproject/f1.ts","/user/username/projects/myproject/f2.ts"]
47+
Program options: {"composite":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"}
48+
Program structureReused: Not
49+
Program files::
50+
/a/lib/lib.d.ts
51+
/user/username/projects/myproject/f1.ts
52+
/user/username/projects/myproject/f2.ts
53+
54+
Semantic diagnostics in builder refreshed for::
55+
/a/lib/lib.d.ts
56+
/user/username/projects/myproject/f1.ts
57+
/user/username/projects/myproject/f2.ts
58+
59+
Shape signatures in builder refreshed for::
60+
/a/lib/lib.d.ts (used version)
61+
/user/username/projects/myproject/f1.ts (computed .d.ts during emit)
62+
/user/username/projects/myproject/f2.ts (computed .d.ts during emit)
63+
64+
WatchedFiles::
65+
/user/username/projects/myproject/tsconfig.json:
66+
{"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250}
67+
/user/username/projects/myproject/f1.ts:
68+
{"fileName":"/user/username/projects/myproject/f1.ts","pollingInterval":250}
69+
/user/username/projects/myproject/f2.ts:
70+
{"fileName":"/user/username/projects/myproject/f2.ts","pollingInterval":250}
71+
/a/lib/lib.d.ts:
72+
{"fileName":"/a/lib/lib.d.ts","pollingInterval":250}
73+
74+
FsWatches::
75+
76+
FsWatchesRecursive::
77+
/user/username/projects/myproject/node_modules/@types:
78+
{"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
79+
/user/username/projects/myproject:
80+
{"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
81+
82+
exitCode:: ExitStatus.undefined
83+
84+
//// [/user/username/projects/myproject/f1.js]
85+
"use strict";
86+
exports.__esModule = true;
87+
exports.x = void 0;
88+
exports.x = 1;
89+
90+
91+
//// [/user/username/projects/myproject/f1.d.ts]
92+
export declare const x = 1;
93+
94+
95+
//// [/user/username/projects/myproject/f2.js]
96+
"use strict";
97+
exports.__esModule = true;
98+
exports.y = void 0;
99+
exports.y = 1;
100+
101+
102+
//// [/user/username/projects/myproject/f2.d.ts]
103+
export declare const y = 1;
104+
105+
106+
//// [/user/username/projects/myproject/tsconfig.tsbuildinfo]
107+
{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./f1.ts","./f2.ts"],"fileInfos":[{"version":"-7698705165-/// <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; }","affectsGlobalScope":true},{"version":"-10906998252-export const x = 1","signature":"-7495133367-export declare const x = 1;\n"},{"version":"-10905812331-export const y = 1","signature":"-6203665398-export declare const y = 1;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3]},"version":"FakeTSVersion"}
108+
109+
//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt]
110+
{
111+
"program": {
112+
"fileNames": [
113+
"../../../../a/lib/lib.d.ts",
114+
"./f1.ts",
115+
"./f2.ts"
116+
],
117+
"fileInfos": {
118+
"../../../../a/lib/lib.d.ts": {
119+
"version": "-7698705165-/// <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; }",
120+
"signature": "-7698705165-/// <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; }",
121+
"affectsGlobalScope": true
122+
},
123+
"./f1.ts": {
124+
"version": "-10906998252-export const x = 1",
125+
"signature": "-7495133367-export declare const x = 1;\n"
126+
},
127+
"./f2.ts": {
128+
"version": "-10905812331-export const y = 1",
129+
"signature": "-6203665398-export declare const y = 1;\n"
130+
}
131+
},
132+
"options": {
133+
"composite": true
134+
},
135+
"referencedMap": {},
136+
"exportedModulesMap": {},
137+
"semanticDiagnosticsPerFile": [
138+
"../../../../a/lib/lib.d.ts",
139+
"./f1.ts",
140+
"./f2.ts"
141+
]
142+
},
143+
"version": "FakeTSVersion",
144+
"size": 828
145+
}
146+
147+
148+
Change:: Add new file
149+
150+
Input::
151+
//// [/user/username/projects/myproject/new-file.ts]
152+
export const z = 1;
153+
154+
155+
Output::
156+
DirectoryWatcher:: Triggered with /user/username/projects/myproject/new-file.ts :: WatchInfo: /user/username/projects/myproject 1 undefined Wild card directory
157+
Scheduling update
158+
Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/new-file.ts :: WatchInfo: /user/username/projects/myproject 1 undefined Wild card directory
159+
Reloading new file names and options
160+
Synchronizing program
161+
[12:00:39 AM] File change detected. Starting incremental compilation...
162+
163+
CreatingProgramWith::
164+
roots: ["/user/username/projects/myproject/f1.ts","/user/username/projects/myproject/f2.ts","/user/username/projects/myproject/new-file.ts"]
165+
options: {"composite":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"}
166+
FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/new-file.ts 250 undefined Source file
167+
DirectoryWatcher:: Triggered with /user/username/projects/myproject/new-file.js :: WatchInfo: /user/username/projects/myproject 1 undefined Wild card directory
168+
Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/new-file.js
169+
Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/new-file.js :: WatchInfo: /user/username/projects/myproject 1 undefined Wild card directory
170+
DirectoryWatcher:: Triggered with /user/username/projects/myproject/new-file.d.ts :: WatchInfo: /user/username/projects/myproject 1 undefined Wild card directory
171+
Project: /user/username/projects/myproject/tsconfig.json Detected output file: /user/username/projects/myproject/new-file.d.ts
172+
Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/new-file.d.ts :: WatchInfo: /user/username/projects/myproject 1 undefined Wild card directory
173+
[12:00:47 AM] Found 0 errors. Watching for file changes.
174+
175+
176+
177+
Program root files: ["/user/username/projects/myproject/f1.ts","/user/username/projects/myproject/f2.ts","/user/username/projects/myproject/new-file.ts"]
178+
Program options: {"composite":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"}
179+
Program structureReused: Not
180+
Program files::
181+
/a/lib/lib.d.ts
182+
/user/username/projects/myproject/f1.ts
183+
/user/username/projects/myproject/f2.ts
184+
/user/username/projects/myproject/new-file.ts
185+
186+
Semantic diagnostics in builder refreshed for::
187+
/user/username/projects/myproject/new-file.ts
188+
189+
Shape signatures in builder refreshed for::
190+
/user/username/projects/myproject/new-file.ts (computed .d.ts)
191+
192+
WatchedFiles::
193+
/user/username/projects/myproject/tsconfig.json:
194+
{"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250}
195+
/user/username/projects/myproject/f1.ts:
196+
{"fileName":"/user/username/projects/myproject/f1.ts","pollingInterval":250}
197+
/user/username/projects/myproject/f2.ts:
198+
{"fileName":"/user/username/projects/myproject/f2.ts","pollingInterval":250}
199+
/a/lib/lib.d.ts:
200+
{"fileName":"/a/lib/lib.d.ts","pollingInterval":250}
201+
/user/username/projects/myproject/new-file.ts:
202+
{"fileName":"/user/username/projects/myproject/new-file.ts","pollingInterval":250}
203+
204+
FsWatches::
205+
206+
FsWatchesRecursive::
207+
/user/username/projects/myproject/node_modules/@types:
208+
{"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
209+
/user/username/projects/myproject:
210+
{"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
211+
212+
exitCode:: ExitStatus.undefined
213+
214+
//// [/user/username/projects/myproject/tsconfig.tsbuildinfo]
215+
{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./f1.ts","./f2.ts","./new-file.ts"],"fileInfos":[{"version":"-7698705165-/// <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; }","affectsGlobalScope":true},{"version":"-10906998252-export const x = 1","signature":"-7495133367-export declare const x = 1;\n"},{"version":"-10905812331-export const y = 1","signature":"-6203665398-export declare const y = 1;\n"},{"version":"-11960320495-export const z = 1;","signature":"-9207164725-export declare const z = 1;\n"}],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"}
216+
217+
//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt]
218+
{
219+
"program": {
220+
"fileNames": [
221+
"../../../../a/lib/lib.d.ts",
222+
"./f1.ts",
223+
"./f2.ts",
224+
"./new-file.ts"
225+
],
226+
"fileInfos": {
227+
"../../../../a/lib/lib.d.ts": {
228+
"version": "-7698705165-/// <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; }",
229+
"signature": "-7698705165-/// <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; }",
230+
"affectsGlobalScope": true
231+
},
232+
"./f1.ts": {
233+
"version": "-10906998252-export const x = 1",
234+
"signature": "-7495133367-export declare const x = 1;\n"
235+
},
236+
"./f2.ts": {
237+
"version": "-10905812331-export const y = 1",
238+
"signature": "-6203665398-export declare const y = 1;\n"
239+
},
240+
"./new-file.ts": {
241+
"version": "-11960320495-export const z = 1;",
242+
"signature": "-9207164725-export declare const z = 1;\n"
243+
}
244+
},
245+
"options": {
246+
"composite": true
247+
},
248+
"referencedMap": {},
249+
"exportedModulesMap": {},
250+
"semanticDiagnosticsPerFile": [
251+
"../../../../a/lib/lib.d.ts",
252+
"./f1.ts",
253+
"./f2.ts",
254+
"./new-file.ts"
255+
]
256+
},
257+
"version": "FakeTSVersion",
258+
"size": 949
259+
}
260+
261+
//// [/user/username/projects/myproject/new-file.js]
262+
"use strict";
263+
exports.__esModule = true;
264+
exports.z = void 0;
265+
exports.z = 1;
266+
267+
268+
//// [/user/username/projects/myproject/new-file.d.ts]
269+
export declare const z = 1;
270+
271+
272+
273+
Change:: Import new file
274+
275+
Input::
276+
//// [/user/username/projects/myproject/f1.ts]
277+
import { z } from "./new-file";export const x = 1
278+
279+
280+
Output::
281+
FileWatcher:: Triggered with /user/username/projects/myproject/f1.ts 1:: WatchInfo: /user/username/projects/myproject/f1.ts 250 undefined Source file
282+
Scheduling update
283+
Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/f1.ts 1:: WatchInfo: /user/username/projects/myproject/f1.ts 250 undefined Source file
284+
Synchronizing program
285+
[12:00:53 AM] File change detected. Starting incremental compilation...
286+
287+
CreatingProgramWith::
288+
roots: ["/user/username/projects/myproject/f1.ts","/user/username/projects/myproject/f2.ts","/user/username/projects/myproject/new-file.ts"]
289+
options: {"composite":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"}
290+
[12:01:03 AM] Found 0 errors. Watching for file changes.
291+
292+
293+
294+
Program root files: ["/user/username/projects/myproject/f1.ts","/user/username/projects/myproject/f2.ts","/user/username/projects/myproject/new-file.ts"]
295+
Program options: {"composite":true,"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"}
296+
Program structureReused: SafeModules
297+
Program files::
298+
/a/lib/lib.d.ts
299+
/user/username/projects/myproject/new-file.ts
300+
/user/username/projects/myproject/f1.ts
301+
/user/username/projects/myproject/f2.ts
302+
303+
Semantic diagnostics in builder refreshed for::
304+
/user/username/projects/myproject/f1.ts
305+
306+
Shape signatures in builder refreshed for::
307+
/user/username/projects/myproject/f1.ts (computed .d.ts)
308+
309+
WatchedFiles::
310+
/user/username/projects/myproject/tsconfig.json:
311+
{"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250}
312+
/user/username/projects/myproject/f1.ts:
313+
{"fileName":"/user/username/projects/myproject/f1.ts","pollingInterval":250}
314+
/user/username/projects/myproject/f2.ts:
315+
{"fileName":"/user/username/projects/myproject/f2.ts","pollingInterval":250}
316+
/a/lib/lib.d.ts:
317+
{"fileName":"/a/lib/lib.d.ts","pollingInterval":250}
318+
/user/username/projects/myproject/new-file.ts:
319+
{"fileName":"/user/username/projects/myproject/new-file.ts","pollingInterval":250}
320+
321+
FsWatches::
322+
323+
FsWatchesRecursive::
324+
/user/username/projects/myproject/node_modules/@types:
325+
{"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
326+
/user/username/projects/myproject:
327+
{"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
328+
329+
exitCode:: ExitStatus.undefined
330+
331+
//// [/user/username/projects/myproject/f1.js] file written with same contents
332+
//// [/user/username/projects/myproject/f1.d.ts] file written with same contents
333+
//// [/user/username/projects/myproject/tsconfig.tsbuildinfo]
334+
{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./new-file.ts","./f1.ts","./f2.ts"],"fileInfos":[{"version":"-7698705165-/// <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; }","affectsGlobalScope":true},{"version":"-11960320495-export const z = 1;","signature":"-9207164725-export declare const z = 1;\n"},{"version":"1363236232-import { z } from \"./new-file\";export const x = 1","signature":"-7495133367-export declare const x = 1;\n"},{"version":"-10905812331-export const y = 1","signature":"-6203665398-export declare const y = 1;\n"}],"options":{"composite":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,3,4,2]},"version":"FakeTSVersion"}
335+
336+
//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt]
337+
{
338+
"program": {
339+
"fileNames": [
340+
"../../../../a/lib/lib.d.ts",
341+
"./new-file.ts",
342+
"./f1.ts",
343+
"./f2.ts"
344+
],
345+
"fileNamesList": [
346+
[
347+
"./new-file.ts"
348+
]
349+
],
350+
"fileInfos": {
351+
"../../../../a/lib/lib.d.ts": {
352+
"version": "-7698705165-/// <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; }",
353+
"signature": "-7698705165-/// <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; }",
354+
"affectsGlobalScope": true
355+
},
356+
"./new-file.ts": {
357+
"version": "-11960320495-export const z = 1;",
358+
"signature": "-9207164725-export declare const z = 1;\n"
359+
},
360+
"./f1.ts": {
361+
"version": "1363236232-import { z } from \"./new-file\";export const x = 1",
362+
"signature": "-7495133367-export declare const x = 1;\n"
363+
},
364+
"./f2.ts": {
365+
"version": "-10905812331-export const y = 1",
366+
"signature": "-6203665398-export declare const y = 1;\n"
367+
}
368+
},
369+
"options": {
370+
"composite": true
371+
},
372+
"referencedMap": {
373+
"./f1.ts": [
374+
"./new-file.ts"
375+
]
376+
},
377+
"exportedModulesMap": {},
378+
"semanticDiagnosticsPerFile": [
379+
"../../../../a/lib/lib.d.ts",
380+
"./f1.ts",
381+
"./f2.ts",
382+
"./new-file.ts"
383+
]
384+
},
385+
"version": "FakeTSVersion",
386+
"size": 1005
387+
}
388+

0 commit comments

Comments
 (0)
Please sign in to comment.