From 2b496f42cac889db855bbae8378d2b0520f87dba Mon Sep 17 00:00:00 2001 From: SuperAuguste <19855629+SuperAuguste@users.noreply.github.com> Date: Thu, 15 Feb 2024 09:23:00 -0500 Subject: [PATCH] Fix JS falsy comparison --- src/zls.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/zls.ts b/src/zls.ts index adc7c31..16cc614 100644 --- a/src/zls.ts +++ b/src/zls.ts @@ -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); }