Skip to content

Error: AbstractContextKeyService has been disposed #286361

@bpasero

Description

@bpasero
  1. scripts/code-cli.sh --transient
  2. open a folder with 2 files or more
  3. from the explorer select 2 and compare with each other to open a diff editor
  4. split the editor so that you see 2 diff editors side by side
  5. close the second diff editor
contextMatchesRules (contextKeyService.ts:322)
createActionGroups (menuService.ts:285)
getActions (menuService.ts:453)
updateToolbar (toolbar.ts:368)
(anonymous) (toolbar.ts:378)
_deliver (event.ts:1212)
fire (event.ts:1243)
resume (event.ts:1392)
(anonymous) (event.ts:1431)
setTimeout
targetWindow.setTimeout (window.ts:124)
fire (event.ts:1429)
(anonymous) (menuService.ts:434)
_deliver (event.ts:1212)
_deliverQueue (event.ts:1223)
fire (event.ts:1247)
fire (event.ts:1410)
setContext (contextKeyService.ts:348)
set (contextKeyService.ts:210)
(anonymous) (platformObservableUtils.ts:40)
_recompute (derivedImpl.ts:201)
get (derivedImpl.ts:159)
reportChanges (baseObservable.ts:45)
endUpdate (utils.ts:191)
endUpdate (derivedImpl.ts:281)
endUpdate (derivedImpl.ts:281)
finish (transaction.ts:102)
transaction (transaction.ts:21)
subtransaction (transaction.ts:58)
setDiffModel (diffEditorWidget.ts:513)
setModel (diffEditorWidget.ts:501)
clearInput (textDiffEditor.ts:331)
(anonymous) (editorPanes.ts:498)
safeRun (editorPanes.ts:545)
doHideActiveEditorPane (editorPanes.ts:498)
closeEditor (editorPanes.ts:517)
doCloseActiveEditor (editorGroupView.ts:1635)
doCloseEditor (editorGroupView.ts:1554)
doCloseEditorWithConfirmationHandling (editorGroupView.ts:1540)
await in doCloseEditorWithConfirmationHandling
closeEditor (editorGroupView.ts:1525)
run (editorActions.ts:481)
runAction (actions.ts:199)
run (actions.ts:190)
run (editorTabsControl.ts:73)
onClick (actionViewItems.ts:177)
(anonymous) (actionViewItems.ts:157)
Screen.Recording.2026-01-07.at.15.02.31.mov

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugdiff-editorDiff editor issues

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions