Skip to content

Commit

Permalink
Enable other linter on file open. (#206)
Browse files Browse the repository at this point in the history
  • Loading branch information
yaegassy committed Dec 17, 2020
1 parent 3b6af23 commit 5ff22a1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/linterProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ export class LinterProvider implements Disposable {
this.disposables.push(disposable);

this.disposables.push(commands.registerCommand('python.runLinting', this.runLinting.bind(this)));

setTimeout(() => this.engine.lintOpenPythonFiles().catch(this.emptyFn), 1200);
}

public dispose() {
Expand Down Expand Up @@ -62,4 +64,8 @@ export class LinterProvider implements Disposable {

this.engine.clearDiagnostics(document);
}

private emptyFn(): void {
// noop
}
}

0 comments on commit 5ff22a1

Please sign in to comment.