File tree 2 files changed +6
-2
lines changed
packages/typescript-estree/src
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 25
25
"sourceType" : " module" ,
26
26
"ecmaFeatures" : {
27
27
"jsx" : false
28
- }
28
+ },
29
+ "project" : " ./tsconfig.base.json"
29
30
},
30
31
"overrides" : [
31
32
{
Original file line number Diff line number Diff line change @@ -28,6 +28,8 @@ const knownWatchProgramMap = new Map<
28
28
*/
29
29
const watchCallbackTrackingMap = new Map < string , ts . FileWatcherCallback > ( ) ;
30
30
31
+ const parsedFilesSeen = new Set < string > ( ) ;
32
+
31
33
/**
32
34
* Holds information about the file currently being linted
33
35
*/
@@ -71,7 +73,7 @@ export function calculateProjectParserOptions(
71
73
// Update file version if necessary
72
74
// TODO: only update when necessary, currently marks as changed on every lint
73
75
const watchCallback = watchCallbackTrackingMap . get ( filePath ) ;
74
- if ( typeof watchCallback !== 'undefined' ) {
76
+ if ( parsedFilesSeen . has ( filePath ) && typeof watchCallback !== 'undefined' ) {
75
77
watchCallback ( filePath , ts . FileWatcherEventKind . Changed ) ;
76
78
}
77
79
@@ -174,6 +176,7 @@ export function calculateProjectParserOptions(
174
176
results . push ( program ) ;
175
177
}
176
178
179
+ parsedFilesSeen . add ( filePath ) ;
177
180
return results ;
178
181
}
179
182
You can’t perform that action at this time.
0 commit comments