提交 03c91972 编写于 作者: I isidor

explorerView: header area, also update on change workspace roots

上级 dd2cd5fc
......@@ -120,7 +120,12 @@ export class ExplorerView extends CollapsibleView {
public renderHeader(container: HTMLElement): void {
const titleDiv = $('div.title').appendTo(container);
$('span').text(this.contextService.getWorkspace().name).title(labels.getPathLabel(this.contextService.getWorkspace().resource.fsPath, void 0, this.environmentService)).appendTo(titleDiv);
const setHeader = () => {
const title = this.contextService.getWorkspace2().roots.map(root => labels.getPathLabel(root.fsPath, void 0, this.environmentService)).join();
$('span').text(this.contextService.getWorkspace2().name).title(title).appendTo(titleDiv);
};
this.toDispose.push(this.contextService.onDidChangeWorkspaceRoots(() => setHeader()));
setHeader();
super.renderHeader(container);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册