debt - ensure to dispose action toolbar of editor group view

This commit is contained in:
Benjamin Pasero 2019-06-11 18:41:33 +02:00
parent ce94c833bf
commit 29dadcc476

View file

@ -276,13 +276,13 @@ export class EditorGroupView extends Themable implements IEditorGroupView {
// Toolbar
const groupId = this._group.id;
const containerToolbar = new ActionBar(toolbarContainer, {
const containerToolbar = this._register(new ActionBar(toolbarContainer, {
ariaLabel: localize('araLabelGroupActions', "Editor group actions"), actionRunner: this._register(new class extends ActionRunner {
run(action: IAction) {
return action.run(groupId);
}
})
});
}));
// Toolbar actions
const removeGroupAction = this._register(new Action(