Clean up group listener

This commit is contained in:
Rob Lourens 2020-07-21 11:41:26 -07:00
parent 8fbe6d6fd8
commit 282214a364

View file

@ -102,6 +102,7 @@ export class NotebookEditor extends BaseEditor {
setEditorVisible(visible: boolean, group: IEditorGroup | undefined): void {
super.setEditorVisible(visible, group);
if (group) {
this._groupListener.clear();
this._groupListener.add(group.onWillCloseEditor(e => this._saveEditorViewState(e.editor)));
this._groupListener.add(group.onDidGroupChange(() => {
if (this._editorGroupService.activeGroup !== group) {