提交 35ef4f36 编写于 作者: I isidor

fixes #47738

上级 4273bfe2
......@@ -9,12 +9,12 @@ import uri from 'vs/base/common/uri';
import { equalsIgnoreCase } from 'vs/base/common/strings';
export function basenameOrAuthority(resource: uri): string {
return paths.basename(resource.fsPath) || resource.authority;
return paths.basename(resource.path) || resource.authority;
}
export function isEqualOrParent(resource: uri, candidate: uri, ignoreCase?: boolean): boolean {
if (resource.scheme === candidate.scheme && resource.authority === candidate.authority) {
return paths.isEqualOrParent(resource.fsPath, candidate.fsPath, ignoreCase);
return paths.isEqualOrParent(resource.path, candidate.path, ignoreCase);
}
return false;
......@@ -66,4 +66,4 @@ export function distinctParents<T>(items: T[], resourceAccessor: (item: T) => ur
}
return distinctParents;
}
\ No newline at end of file
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册