From 76c372e24f7ac58af8c77d605943eedb42c02759 Mon Sep 17 00:00:00 2001 From: Techatrix <19954306+Techatrix@users.noreply.github.com> Date: Mon, 15 Jan 2024 23:17:48 +0100 Subject: [PATCH] don't install ZLS when user closes prompt --- src/zls.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/zls.ts b/src/zls.ts index f3bf4fb..7f2422b 100644 --- a/src/zls.ts +++ b/src/zls.ts @@ -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;