diff --git a/src/vs/workbench/services/history/electron-browser/history.ts b/src/vs/workbench/services/history/electron-browser/history.ts index e06e34f286a..cbe72164380 100644 --- a/src/vs/workbench/services/history/electron-browser/history.ts +++ b/src/vs/workbench/services/history/electron-browser/history.ts @@ -476,7 +476,7 @@ export class HistoryService extends Disposable implements IHistoryService { private clearOnEditorDispose(editor: IEditorInput | IResourceInput | FileChangesEvent, mapEditorToDispose: Map): void { if (editor instanceof EditorInput) { - const disposables = this.editorHistoryListeners.get(editor); + const disposables = mapEditorToDispose.get(editor); if (disposables) { dispose(disposables); mapEditorToDispose.delete(editor);