Skip to content

Commit d46e7fc

Browse files
autofix-ci[bot]liangmiQwQ
authored andcommitted
[autofix.ci] apply automated fixes
1 parent d912303 commit d46e7fc

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

editors/vscode/client/extension.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -342,14 +342,14 @@ function generateActivatorByConfig(config: VSCodeConfig, context: ExtensionConte
342342

343343
watcher.onDidDelete(async () => {
344344
// only can be called when config.requireConfig
345-
allowedToStartServer = (await workspace.findFiles(`**/.oxlintrc.json`, '**/node_modules/**', 1)).length > 0
346-
if(!allowedToStartServer){
347-
updateStatsBar(context, false)
348-
if(client && client.isRunning()){
349-
await client.stop()
345+
allowedToStartServer = (await workspace.findFiles(`**/.oxlintrc.json`, '**/node_modules/**', 1)).length > 0;
346+
if (!allowedToStartServer) {
347+
updateStatsBar(context, false);
348+
if (client && client.isRunning()) {
349+
await client.stop();
350350
}
351351
}
352-
})
352+
});
353353

354354
context.subscriptions.push(watcher);
355355
}

0 commit comments

Comments
 (0)