Skip to content

Commit

Permalink
Checker supported CodeChecker version on configuration change
Browse files Browse the repository at this point in the history
Check supported CodeChecker version when the CodeChecker executable path
configuration setting is changed.
  • Loading branch information
csordasmarton committed Jan 31, 2022
1 parent 39b0dc3 commit f407766
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/backend/executor/bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ export class ExecutorBridge implements Disposable {

workspace.onDidSaveTextDocument(this.analyzeOnSave, this, ctx.subscriptions);
workspace.onDidChangeConfiguration(this.updateDatabasePaths, this, ctx.subscriptions);
workspace.onDidChangeConfiguration((e) => {
// Check the version only if the CodeChecker executable path is changed.
if (!e.affectsConfiguration('codechecker.executor.executablePath')) return;

this.checkVersion();
}, this, ctx.subscriptions);

ctx.subscriptions.push(
commands.registerCommand('codechecker.executor.analyzeCurrentFile', this.analyzeCurrentFile, this)
Expand Down

0 comments on commit f407766

Please sign in to comment.