-
Notifications
You must be signed in to change notification settings - Fork 12.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix casing for wild card keys for implicit globs to get wild card dir…
…ectories to watch (#39049) * Test showing how wild card directory is not watched because of mismatch in key case * Fix casing for wild card keys for implicit globs Fixes #36532
- Loading branch information
1 parent
b4735c0
commit f628bf8
Showing
3 changed files
with
152 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
124 changes: 124 additions & 0 deletions
124
...correctly-update-configured-project-when-set-of-root-files-has-changed-through-include.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,124 @@ | ||
Input:: | ||
//// [/user/username/projects/myproject/Project/file1.ts] | ||
export const x = 10; | ||
|
||
//// [/a/lib/lib.d.ts] | ||
/// <reference no-default-lib="true"/> | ||
interface Boolean {} | ||
interface Function {} | ||
interface CallableFunction {} | ||
interface NewableFunction {} | ||
interface IArguments {} | ||
interface Number { toExponential: any; } | ||
interface Object {} | ||
interface RegExp {} | ||
interface String { charAt: any; } | ||
interface Array<T> { length: number; [n: number]: T; } | ||
|
||
//// [/user/username/projects/myproject/Project/tsconfig.json] | ||
{"include":[".","./**/*.json"]} | ||
|
||
|
||
/a/lib/tsc.js -w -p . | ||
Output:: | ||
>> Screen clear | ||
[[90m12:00:23 AM[0m] Starting compilation in watch mode... | ||
|
||
|
||
[[90m12:00:26 AM[0m] Found 0 errors. Watching for file changes. | ||
|
||
|
||
|
||
Program root files: ["/user/username/projects/myproject/Project/file1.ts"] | ||
Program options: {"watch":true,"project":"/user/username/projects/myproject/Project","configFilePath":"/user/username/projects/myproject/Project/tsconfig.json"} | ||
Program files:: | ||
/a/lib/lib.d.ts | ||
/user/username/projects/myproject/Project/file1.ts | ||
|
||
Semantic diagnostics in builder refreshed for:: | ||
/a/lib/lib.d.ts | ||
/user/username/projects/myproject/Project/file1.ts | ||
|
||
WatchedFiles:: | ||
/user/username/projects/myproject/project/tsconfig.json: | ||
{"fileName":"/user/username/projects/myproject/Project/tsconfig.json","pollingInterval":250} | ||
/user/username/projects/myproject/project/file1.ts: | ||
{"fileName":"/user/username/projects/myproject/Project/file1.ts","pollingInterval":250} | ||
/a/lib/lib.d.ts: | ||
{"fileName":"/a/lib/lib.d.ts","pollingInterval":250} | ||
|
||
FsWatches:: | ||
|
||
FsWatchesRecursive:: | ||
/user/username/projects/myproject/project/node_modules/@types: | ||
{"directoryName":"/user/username/projects/myproject/Project/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} | ||
/user/username/projects/myproject/node_modules/@types: | ||
{"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} | ||
/user/username/projects/myproject/project: | ||
{"directoryName":"/user/username/projects/myproject/project","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} | ||
|
||
exitCode:: ExitStatus.undefined | ||
|
||
//// [/user/username/projects/myproject/Project/file1.js] | ||
"use strict"; | ||
exports.__esModule = true; | ||
exports.x = void 0; | ||
exports.x = 10; | ||
|
||
|
||
|
||
Change:: Write file2 | ||
|
||
Input:: | ||
//// [/user/username/projects/myproject/Project/file2.ts] | ||
export const y = 10; | ||
|
||
|
||
Output:: | ||
>> Screen clear | ||
[[90m12:00:29 AM[0m] File change detected. Starting incremental compilation... | ||
|
||
|
||
[[90m12:00:32 AM[0m] Found 0 errors. Watching for file changes. | ||
|
||
|
||
|
||
Program root files: ["/user/username/projects/myproject/Project/file1.ts","/user/username/projects/myproject/Project/file2.ts"] | ||
Program options: {"watch":true,"project":"/user/username/projects/myproject/Project","configFilePath":"/user/username/projects/myproject/Project/tsconfig.json"} | ||
Program files:: | ||
/a/lib/lib.d.ts | ||
/user/username/projects/myproject/Project/file1.ts | ||
/user/username/projects/myproject/Project/file2.ts | ||
|
||
Semantic diagnostics in builder refreshed for:: | ||
/user/username/projects/myproject/Project/file2.ts | ||
|
||
WatchedFiles:: | ||
/user/username/projects/myproject/project/tsconfig.json: | ||
{"fileName":"/user/username/projects/myproject/Project/tsconfig.json","pollingInterval":250} | ||
/user/username/projects/myproject/project/file1.ts: | ||
{"fileName":"/user/username/projects/myproject/Project/file1.ts","pollingInterval":250} | ||
/a/lib/lib.d.ts: | ||
{"fileName":"/a/lib/lib.d.ts","pollingInterval":250} | ||
/user/username/projects/myproject/project/file2.ts: | ||
{"fileName":"/user/username/projects/myproject/Project/file2.ts","pollingInterval":250} | ||
|
||
FsWatches:: | ||
|
||
FsWatchesRecursive:: | ||
/user/username/projects/myproject/project/node_modules/@types: | ||
{"directoryName":"/user/username/projects/myproject/Project/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} | ||
/user/username/projects/myproject/node_modules/@types: | ||
{"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} | ||
/user/username/projects/myproject/project: | ||
{"directoryName":"/user/username/projects/myproject/project","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} | ||
|
||
exitCode:: ExitStatus.undefined | ||
|
||
//// [/user/username/projects/myproject/Project/file2.js] | ||
"use strict"; | ||
exports.__esModule = true; | ||
exports.y = void 0; | ||
exports.y = 10; | ||
|
||
|