From 9f72c7ca38b3cb266ce23140631ed6012482f9db Mon Sep 17 00:00:00 2001 From: fendor Date: Sun, 10 Dec 2023 19:27:24 +0100 Subject: [PATCH] Always set the cwd for the executable (#1011) --- src/extension.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extension.ts b/src/extension.ts index ba391c1f..d0d636f5 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -225,7 +225,7 @@ async function activateServerForFolder(context: ExtensionContext, uri: Uri, fold }; } const exeOptions: ExecutableOptions = { - cwd: folder ? undefined : path.dirname(uri.fsPath), + cwd: folder ? folder.uri.fsPath : path.dirname(uri.fsPath), env: { ...process.env, ...serverEnvironment }, };