Make sure lower case paths in a consistent way

Fixes #56582
This commit is contained in:
Matt Bierner 2018-09-11 10:43:14 -07:00
parent d698ce60ce
commit bca6f51d8a

View file

@ -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);
}