Skip to content

Commit

Permalink
Always set the cwd for the executable (#1011)
Browse files Browse the repository at this point in the history
  • Loading branch information
fendor authored Dec 10, 2023
1 parent 43d8560 commit 9f72c7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
};

Expand Down

0 comments on commit 9f72c7c

Please sign in to comment.