We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b9bb004 + 271ef9d commit 407b75cCopy full SHA for 407b75c
src/IncrementalChecker.ts
@@ -238,7 +238,13 @@ class IncrementalChecker {
238
try {
239
this.linter.lint(fileName, undefined, this.linterConfig);
240
} catch (e) {
241
- if (fs.existsSync(fileName)) {
+ if (
242
+ fs.existsSync(fileName) &&
243
+ // check the error type due to file system lag
244
+ !(e instanceof Error) &&
245
+ !(e.constructor.name === 'FatalError') &&
246
+ !(e.message && e.message.trim().startsWith("Invalid source file"))
247
+ ) {
248
// it's not because file doesn't exist - throw error
249
throw e;
250
}
0 commit comments