提交 37054131 编写于 作者: J Johannes Rieken

include scheme in path label unless file or untitled, #40662

上级 d4436daa
......@@ -30,7 +30,7 @@ export function getPathLabel(resource: URI | string, rootProvider?: IWorkspaceFo
}
if (resource.scheme !== 'file' && resource.scheme !== 'untitled') {
return resource.authority + resource.path;
return resource.with({ query: null, fragment: null }).toString(false);
}
// return early if we can resolve a relative path label from the root
......@@ -362,4 +362,4 @@ export function mnemonicButtonLabel(label: string): string {
export function unmnemonicLabel(label: string): string {
return label.replace(/&/g, '&&');
}
\ No newline at end of file
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册