forked from microsoft/TypeScript
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle fsWatch event with accesstime change on mac os (microsoft#56403)
- Loading branch information
1 parent
d1d14e6
commit e40730f
Showing
5 changed files
with
398 additions
and
3 deletions.
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
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
177 changes: 177 additions & 0 deletions
177
tests/baselines/reference/tscWatch/watchEnvironment/fsWatch/fsWatchWithTimestamp-false.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,177 @@ | ||
currentDirectory:: /user/username/projects/myproject useCaseSensitiveFileNames: false | ||
Input:: | ||
//// [/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/main.ts] | ||
export const x = 10; | ||
|
||
//// [/user/username/projects/myproject/tsconfig.json] | ||
{ | ||
"files": [ | ||
"main.ts" | ||
] | ||
} | ||
|
||
|
||
/a/lib/tsc.js -w --extendedDiagnostics | ||
Output:: | ||
[[90m12:00:21 AM[0m] Starting compilation in watch mode... | ||
|
||
Current directory: /user/username/projects/myproject CaseSensitiveFileNames: false | ||
FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Config file | ||
Synchronizing program | ||
CreatingProgramWith:: | ||
roots: ["/user/username/projects/myproject/main.ts"] | ||
options: {"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} | ||
FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main.ts 250 undefined Source file | ||
FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 undefined Source file | ||
DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots | ||
Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots | ||
DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Type roots | ||
Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Type roots | ||
[[90m12:00:24 AM[0m] Found 0 errors. Watching for file changes. | ||
|
||
|
||
|
||
//// [/user/username/projects/myproject/main.js] | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.x = void 0; | ||
exports.x = 10; | ||
|
||
|
||
|
||
PolledWatches:: | ||
/user/username/projects/myproject/node_modules/@types: *new* | ||
{"pollingInterval":500} | ||
/user/username/projects/node_modules/@types: *new* | ||
{"pollingInterval":500} | ||
|
||
FsWatches:: | ||
/a/lib/lib.d.ts: *new* | ||
{} | ||
/user/username/projects/myproject/main.ts: *new* | ||
{} | ||
/user/username/projects/myproject/tsconfig.json: *new* | ||
{} | ||
|
||
Program root files: [ | ||
"/user/username/projects/myproject/main.ts" | ||
] | ||
Program options: { | ||
"watch": true, | ||
"extendedDiagnostics": true, | ||
"configFilePath": "/user/username/projects/myproject/tsconfig.json" | ||
} | ||
Program structureReused: Not | ||
Program files:: | ||
/a/lib/lib.d.ts | ||
/user/username/projects/myproject/main.ts | ||
|
||
Semantic diagnostics in builder refreshed for:: | ||
/a/lib/lib.d.ts | ||
/user/username/projects/myproject/main.ts | ||
|
||
Shape signatures in builder refreshed for:: | ||
/a/lib/lib.d.ts (used version) | ||
/user/username/projects/myproject/main.ts (used version) | ||
|
||
exitCode:: ExitStatus.undefined | ||
|
||
Change:: emulate access | ||
|
||
Input:: | ||
|
||
Output:: | ||
FileWatcher:: Triggered with /user/username/projects/myproject/main.ts 1:: WatchInfo: /user/username/projects/myproject/main.ts 250 undefined Source file | ||
Scheduling update | ||
Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/main.ts 1:: WatchInfo: /user/username/projects/myproject/main.ts 250 undefined Source file | ||
|
||
|
||
Timeout callback:: count: 1 | ||
1: timerToUpdateProgram *new* | ||
|
||
Before running Timeout callback:: count: 1 | ||
1: timerToUpdateProgram | ||
|
||
After running Timeout callback:: count: 0 | ||
Output:: | ||
Synchronizing program | ||
|
||
|
||
|
||
|
||
exitCode:: ExitStatus.undefined | ||
|
||
Change:: modify file contents | ||
|
||
Input:: | ||
//// [/user/username/projects/myproject/main.ts] | ||
export const x = 10;export const y = 10; | ||
|
||
|
||
Output:: | ||
FileWatcher:: Triggered with /user/username/projects/myproject/main.ts 1:: WatchInfo: /user/username/projects/myproject/main.ts 250 undefined Source file | ||
Scheduling update | ||
Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/main.ts 1:: WatchInfo: /user/username/projects/myproject/main.ts 250 undefined Source file | ||
|
||
|
||
Timeout callback:: count: 1 | ||
2: timerToUpdateProgram *new* | ||
|
||
Before running Timeout callback:: count: 1 | ||
2: timerToUpdateProgram | ||
|
||
After running Timeout callback:: count: 0 | ||
Output:: | ||
Synchronizing program | ||
[[90m12:00:27 AM[0m] File change detected. Starting incremental compilation... | ||
|
||
CreatingProgramWith:: | ||
roots: ["/user/username/projects/myproject/main.ts"] | ||
options: {"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} | ||
[[90m12:00:31 AM[0m] Found 0 errors. Watching for file changes. | ||
|
||
|
||
|
||
//// [/user/username/projects/myproject/main.js] | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.y = exports.x = void 0; | ||
exports.x = 10; | ||
exports.y = 10; | ||
|
||
|
||
|
||
|
||
Program root files: [ | ||
"/user/username/projects/myproject/main.ts" | ||
] | ||
Program options: { | ||
"watch": true, | ||
"extendedDiagnostics": true, | ||
"configFilePath": "/user/username/projects/myproject/tsconfig.json" | ||
} | ||
Program structureReused: Completely | ||
Program files:: | ||
/a/lib/lib.d.ts | ||
/user/username/projects/myproject/main.ts | ||
|
||
Semantic diagnostics in builder refreshed for:: | ||
/user/username/projects/myproject/main.ts | ||
|
||
Shape signatures in builder refreshed for:: | ||
/user/username/projects/myproject/main.ts (computed .d.ts) | ||
|
||
exitCode:: ExitStatus.undefined |
Oops, something went wrong.