Skip to content

Commit

Permalink
Fix ZLS config path condition
Browse files Browse the repository at this point in the history
  • Loading branch information
yzrmn authored and Techatrix committed Apr 5, 2024
1 parent 0adc753 commit eb2453f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ export async function activate(context: vscode.ExtensionContext) {
}, context.subscriptions);

const zlsConfig = vscode.workspace.getConfiguration("zig.zls");
if (!zlsConfig.get<string>("path")) return;
if (zlsConfig.get<string>("path") === undefined) return;
if (zlsConfig.get<boolean>("checkForUpdate") && (await shouldCheckUpdate(context, "zlsUpdate"))) {
await checkUpdate(context);
}
Expand Down

0 comments on commit eb2453f

Please sign in to comment.