提交 45d3c1a4 编写于 作者: B Benjamin Pasero

💄

上级 7ad42e10
......@@ -81,7 +81,12 @@ export function getBaseLabel(resource: URI | string): string {
// Windows: basename('C:\') returns empty string, so make sure to always
// return the drive letter at least in that case.
if (!base) {
base = normalize(normalizeDriveLetter(resource.fsPath), true);
base = resource.fsPath;
}
// convert c: => C:
if (hasDriveLetter(base)) {
return normalize(normalizeDriveLetter(base), true);
}
return base;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册