This commit is contained in:
rebornix 2021-08-06 13:35:01 -07:00
parent 5a394770ad
commit 3926fbd0b9

View file

@ -177,6 +177,8 @@ export class NotebookEditorToolbar extends Disposable {
this._register(this.configurationService.onDidChangeConfiguration(e => {
if (e.affectsConfiguration(GlobalToolbarShowLabel)) {
this._renderLabel = this.configurationService.getValue<boolean>(GlobalToolbarShowLabel);
const oldElement = this._notebookLeftToolbar.getElement();
oldElement.parentElement?.removeChild(oldElement);
this._notebookLeftToolbar.dispose();
this._notebookLeftToolbar = new ToolBar(this._notebookTopLeftToolbarContainer, this.contextMenuService, {
getKeyBinding: action => this.keybindingService.lookupKeybinding(action.id),
@ -185,6 +187,7 @@ export class NotebookEditorToolbar extends Disposable {
});
this._register(this._notebookLeftToolbar);
this._notebookLeftToolbar.context = context;
this._showNotebookActionsinEditorToolbar();
return;
}