Skip to content
This repository was archived by the owner on Nov 25, 2025. It is now read-only.

Commit 1b59f36

Browse files
committed
always set zig.zls.enabled in global configuration instead of workspace
1 parent 7d0567f commit 1b59f36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/zls.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -422,14 +422,14 @@ export async function activate(context: vscode.ExtensionContext) {
422422
statusItem,
423423
vscode.commands.registerCommand("zig.zls.enable", async () => {
424424
const zlsConfig = vscode.workspace.getConfiguration("zig.zls");
425-
await zlsConfig.update("enabled", "on");
425+
await zlsConfig.update("enabled", "on", true);
426426
}),
427427
vscode.commands.registerCommand("zig.zls.stop", async () => {
428428
await stopClient();
429429
}),
430430
vscode.commands.registerCommand("zig.zls.startRestart", async () => {
431431
const zlsConfig = vscode.workspace.getConfiguration("zig.zls");
432-
await zlsConfig.update("enabled", "on");
432+
await zlsConfig.update("enabled", "on", true);
433433
await restartClient(context);
434434
}),
435435
vscode.commands.registerCommand("zig.zls.openOutput", () => {

0 commit comments

Comments
 (0)