diff --git a/src/zls.ts b/src/zls.ts index adc7c31..c55f3fb 100644 --- a/src/zls.ts +++ b/src/zls.ts @@ -245,7 +245,7 @@ export async function activate(context: ExtensionContext) { outputChannel = window.createOutputChannel("Zig Language Server"); vscode.commands.registerCommand("zig.zls.install", async () => { - if (!workspace.getConfiguration("zig").get("path")) { + if (workspace.getConfiguration("zig").get("path") === undefined) { window.showErrorMessage("This command cannot be run without setting 'zig.path'.", { modal: true }); return; } @@ -282,9 +282,9 @@ export async function activate(context: ExtensionContext) { }); const zigConfig = vscode.workspace.getConfiguration("zig"); - if (!zigConfig.get("path")) return; + if (zigConfig.get("path") === undefined) return; const zlsConfig = workspace.getConfiguration("zig.zls"); - if (!zlsConfig.get("path")) return; + if (zlsConfig.get("path") === undefined) return; if (zlsConfig.get("checkForUpdate") && shouldCheckUpdate(context, "zlsUpdate")) { await checkUpdate(context); }