Skip to content

Commit

Permalink
don't install ZLS when user closes prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
Techatrix authored and Vexu committed Jan 16, 2024
1 parent bf09c1f commit 76c372e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/zls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@ export async function install(context: ExtensionContext, ask: boolean) {
`Do you want to install ZLS (the Zig Language Server) for Zig version ${zigVersion}`,
"Install", "Ignore"
);

if (result === undefined) { return; }
if (result === "Ignore") {
await zlsConfiguration.update("path", undefined, true);
return;
Expand Down

0 comments on commit 76c372e

Please sign in to comment.