Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Error: AbstractContextKeyService has been disposed #4581

Open
2 tasks done
SheaJanke opened this issue Jun 26, 2024 · 1 comment
Open
2 tasks done

[Bug] Error: AbstractContextKeyService has been disposed #4581

SheaJanke opened this issue Jun 26, 2024 · 1 comment

Comments

@SheaJanke
Copy link

Reproducible in vscode.dev or in VS Code Desktop?

  • Not reproducible in vscode.dev or VS Code Desktop

Reproducible in the monaco editor playground?

Monaco Editor Playground Link

No response

Monaco Editor Playground Code

No response

Reproduction Steps

No response

Actual (Problematic) Behavior

I'm getting the following console error when closing a modal containing a DiffEditor:

Error: AbstractContextKeyService has been disposed
    at ScopedContextKeyService.contextMatchesRules (contextKeyService.js:241:19)
    at MenuInfo_1.createActionGroups (menuService.js:222:45)
    at MenuImpl.getActions (menuService.js:362:31)
    at FromEventObservable._getValue (gutterFeature.js:47:86)
    at FromEventObservable.handleEvent [as value] (utils.js:49:35)
    at DebounceEmitter._deliver (event.js:916:22)
    at DebounceEmitter.fire (event.js:946:18)
    at DebounceEmitter.resume (event.js:1001:27)
    at event.js:1035:22
    at errors.js:15:27

Editor Options:

{
  automaticLayout: true,
  find: {
    addExtraSpaceOnTop: false,
  },
  glyphMargin: true,
  readOnly: true,
  scrollbar: {
    alwaysConsumeMouseWheel: false,
  },
  scrollBeyondLastLine: false,
  quickSuggestions: true,
}

Expected Behavior

No console error.

Additional Context

This error only occurs when renderGutterMenu: true (which is the default). The error is not present in versions <= 0.47.0.

@kaiyoma
Copy link

kaiyoma commented Jun 27, 2024

vscode has been seeing this issue for a couple months now: microsoft/vscode#210947

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants