提交 d37fc993 编写于 作者: I isidor

polish label

上级 f86638df
......@@ -235,12 +235,10 @@ export class FileLabel extends ResourceLabel {
}
}
const description = resource.scheme === 'file' || resource.scheme === 'untitled' ? getPathLabel(paths.dirname(resource.fsPath), rootProvider, this.environmentService) : resource.authority;
this.setLabel({
resource,
name: (options && options.hideLabel) ? void 0 : resources.basenameOrAuthority(resource),
description: !hidePath ? description : void 0
description: !hidePath ? getPathLabel(resources.dirname(resource), rootProvider, this.environmentService) : void 0
}, options);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册