提交 3ff43d06 编写于 作者: I isidor

path labels: if resource belongs to a root to show relative label use paths...

path labels: if resource belongs to a root to show relative label use paths not toString (it encodes)

fixes #52512
上级 b646671f
...@@ -45,7 +45,7 @@ export function getPathLabel(resource: URI | string, userHomeProvider: IUserHome ...@@ -45,7 +45,7 @@ export function getPathLabel(resource: URI | string, userHomeProvider: IUserHome
if (isEqual(baseResource.uri, resource, !isLinux)) { if (isEqual(baseResource.uri, resource, !isLinux)) {
pathLabel = ''; // no label if paths are identical pathLabel = ''; // no label if paths are identical
} else { } else {
pathLabel = normalize(ltrim(resource.toString().substr(baseResource.uri.toString().length), sep), true); pathLabel = normalize(ltrim(resource.path.substr(baseResource.uri.path.length), sep), true);
} }
if (hasMultipleRoots) { if (hasMultipleRoots) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册