Skip to content

Commit c78b2c0

Browse files
committed
chore: update
1 parent 864e35b commit c78b2c0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

editors/vscode/client/tools/linter.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,9 @@ export default class LinterTool implements ToolInterface {
263263
statusBarItemHandler: StatusBarItemHandler,
264264
): Promise<void> {
265265
this.updateStatusBar(statusBarItemHandler, configService.vsCodeConfig.enable);
266-
await this.toggleClient(configService); // update the client state
266+
if (event.affectsConfiguration(`${ConfigService.namespace}.enable`)) {
267+
await this.toggleClient(configService); // update the client state
268+
}
267269

268270
if (this.client === undefined) {
269271
return;

0 commit comments

Comments
 (0)