We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a4b6773 commit 7fb2210Copy full SHA for 7fb2210
1 file changed
src/vs/base/common/resources.ts
@@ -18,7 +18,7 @@ export function getComparisonKey(resource: URI): string {
18
export function hasToIgnoreCase(resource: URI): boolean {
19
// A file scheme resource is in the same platform as code, so ignore case for non linux platforms
20
// Resource can be from another platform. Lowering the case as an hack. Should come from File system provider
21
- return resource.scheme === Schemas.file ? !isLinux : true;
+ return resource && resource.scheme === Schemas.file ? !isLinux : true;
22
}
23
24
export function basenameOrAuthority(resource: URI): string {
0 commit comments