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.
1 parent 07f7815 commit 3dde906Copy full SHA for 3dde906
lib/IncrementalChecker.js
@@ -150,7 +150,14 @@ IncrementalChecker.prototype.getLints = function (cancellationToken) {
150
workSet.forEach(function (fileName) {
151
cancellationToken.throwIfCancellationRequested();
152
153
- this.linter.lint(fileName, undefined, this.linterConfig);
+ try {
154
+ this.linter.lint(fileName, undefined, this.linterConfig);
155
+ } catch (e) {
156
+ if (fs.existsSync(fileName)) {
157
+ // it's not because file doesn't exist - throw error
158
+ throw e;
159
+ }
160
161
}.bind(this));
162
163
// set lints in files register
0 commit comments