Skip to content

Commit 9f72c7c

Browse files
authored
Always set the cwd for the executable (#1011)
1 parent 43d8560 commit 9f72c7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ async function activateServerForFolder(context: ExtensionContext, uri: Uri, fold
225225
};
226226
}
227227
const exeOptions: ExecutableOptions = {
228-
cwd: folder ? undefined : path.dirname(uri.fsPath),
228+
cwd: folder ? folder.uri.fsPath : path.dirname(uri.fsPath),
229229
env: { ...process.env, ...serverEnvironment },
230230
};
231231

0 commit comments

Comments
 (0)