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.
This commit is contained in:
Asher 2019-08-27 14:26:54 -05:00
parent d33b2d2af9
commit a3ee7c96a0
No known key found for this signature in database
GPG Key ID: D63C1EF81242354A
1 changed files with 1 additions and 1 deletions

View File

@ -490,7 +490,7 @@ export class MainServer extends Server {
const locale = environment.args.locale || await getLocaleFromConfig(environment.userDataPath);
const cwd = process.env.VSCODE_CWD || process.cwd();
const workspacePath = parsedUrl.query.workspace as string | undefined;
const folderPath = !workspacePath ? parsedUrl.query.folder as string | undefined || this.options.folderUri || cwd: undefined;
const folderPath = !workspacePath ? parsedUrl.query.folder as string | undefined || this.options.folderUri : undefined;
const remoteAuthority = request.headers.host as string;
const transformer = getUriTransformer(remoteAuthority);
const options: Options = {