提交 bc834612 编写于 作者: I isidor

fixes #81662

上级 a6340579
......@@ -33,7 +33,6 @@ export class EmptyView extends ViewletPanel {
private button!: Button;
private messageElement!: HTMLElement;
private titleElement!: HTMLElement;
constructor(
options: IViewletViewOptions,
......@@ -52,19 +51,6 @@ export class EmptyView extends ViewletPanel {
this._register(this.labelService.onDidChangeFormatters(() => this.setLabels()));
}
renderHeader(container: HTMLElement): void {
const twisties = document.createElement('div');
DOM.addClasses(twisties, 'twisties', 'codicon', 'codicon-chevron-right');
container.appendChild(twisties);
const titleContainer = document.createElement('div');
DOM.addClass(titleContainer, 'title');
container.appendChild(titleContainer);
this.titleElement = document.createElement('span');
titleContainer.appendChild(this.titleElement);
}
protected renderBody(container: HTMLElement): void {
DOM.addClass(container, 'explorer-empty-view');
container.tabIndex = 0;
......@@ -129,7 +115,7 @@ export class EmptyView extends ViewletPanel {
if (this.button) {
this.button.label = nls.localize('addFolder', "Add Folder");
}
this.titleElement.textContent = EmptyView.NAME;
this.updateTitle(EmptyView.NAME);
} else {
if (this.environmentService.configuration.remoteAuthority && !isWeb) {
const hostLabel = this.labelService.getHostLabel(Schemas.vscodeRemote, this.environmentService.configuration.remoteAuthority);
......@@ -140,7 +126,7 @@ export class EmptyView extends ViewletPanel {
if (this.button) {
this.button.label = nls.localize('openFolder', "Open Folder");
}
this.titleElement.textContent = this.title;
this.updateTitle(this.title);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册