diff --git a/src/vs/code/electron-main/app.ts b/src/vs/code/electron-main/app.ts index 7c8dc75333e..4ade1e01758 100644 --- a/src/vs/code/electron-main/app.ts +++ b/src/vs/code/electron-main/app.ts @@ -266,8 +266,8 @@ export class CodeApplication { return true; } - const srcUri: any = URI.parse(source.toLowerCase()).fsPath; - const rootUri = URI.file(this.environmentService.appRoot.toLowerCase()).fsPath; + const srcUri: any = URI.parse(source).fsPath.toLowerCase(); + const rootUri = URI.file(this.environmentService.appRoot).fsPath.toLowerCase(); return srcUri.startsWith(rootUri + nativeSep); }