Dispose underlying text input in notebook input to clear editor service references correctly. (#21318)

This commit is contained in:
Cory Rivera
2022-11-29 10:06:52 -08:00
committed by GitHub
parent be036ee215
commit 4dfedabbc6

View File

@@ -257,6 +257,7 @@ export abstract class NotebookInput extends EditorInput implements INotebookInpu
this._notebookEditorOpenedTimestamp = Date.now();
if (this._textInput) {
this.hookDirtyListener(this._textInput.onDidChangeDirty, () => this._onDidChangeDirty.fire());
this._register(this._textInput);
}
}