Skip to content

Commit

Permalink
add back the zig.zls.debugLog option
Browse files Browse the repository at this point in the history
This option has been removed in 47e6669
which I believe was accidental.
  • Loading branch information
Techatrix committed Apr 1, 2024
1 parent e6f9295 commit d7e48d7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,11 @@
],
"default": "extension"
},
"zig.zls.debugLog": {
"scope": "resource",
"type": "boolean",
"description": "Enable debug logging in release builds of ZLS."
},
"zig.zls.trace.server": {
"scope": "window",
"type": "string",
Expand Down
5 changes: 4 additions & 1 deletion src/zls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,10 @@ export async function activate(context: vscode.ExtensionContext) {
});

vscode.workspace.onDidChangeConfiguration(async (change) => {
if (change.affectsConfiguration("zig.zls.path", undefined)) {
if (
change.affectsConfiguration("zig.zls.path", undefined) ||
change.affectsConfiguration("zig.zls.debugLog", undefined)
) {
await stopClient();
const zlsConfig = vscode.workspace.getConfiguration("zig.zls");
if (!!zlsConfig.get<string>("path")) {
Expand Down

0 comments on commit d7e48d7

Please sign in to comment.