Skip to content

Commit a3ee7c9

Browse files
committed
Don't open cwd by default
Fixes #889. Previous it would use the cwd. In some cases that's the path of where the binary is located which is a weird place to open.
1 parent d33b2d2 commit a3ee7c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ export class MainServer extends Server {
490490
const locale = environment.args.locale || await getLocaleFromConfig(environment.userDataPath);
491491
const cwd = process.env.VSCODE_CWD || process.cwd();
492492
const workspacePath = parsedUrl.query.workspace as string | undefined;
493-
const folderPath = !workspacePath ? parsedUrl.query.folder as string | undefined || this.options.folderUri || cwd: undefined;
493+
const folderPath = !workspacePath ? parsedUrl.query.folder as string | undefined || this.options.folderUri : undefined;
494494
const remoteAuthority = request.headers.host as string;
495495
const transformer = getUriTransformer(remoteAuthority);
496496
const options: Options = {

0 commit comments

Comments
 (0)