Skip to content

Commit a7fc2a8

Browse files
committed
auto-run only on save, as promised
reduce excessive calls to checkpatch (can by quite heavy when many opened files)
1 parent bea9f69 commit a7fc2a8

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/checkpatchProvider.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,6 @@ export default class CheckpatchProvider implements vscode.CodeActionProvider {
8484

8585
if (config.run === 'onSave') {
8686
this.documentListener = vscode.workspace.onDidSaveTextDocument(this.checkpatchFile, this);
87-
vscode.workspace.onDidOpenTextDocument(this.checkpatchFile, this);
88-
vscode.workspace.textDocuments.forEach(this.checkpatchFile, this);
8987
}
9088
}
9189

0 commit comments

Comments
 (0)