Skip to content

Prevent LSP panics on stale document notifications - #64036

Draft
Ryan Cavanaugh (RyanCavanaugh) with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-lsp-overlay-not-found
Draft

Prevent LSP panics on stale document notifications#64036
Ryan Cavanaugh (RyanCavanaugh) with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-lsp-overlay-not-found

Conversation

Copilot AI commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Some LSP clients emit duplicate or stale document notifications. A didClose or didChange received after the document overlay was removed caused the language server to panic.

  • Change

    • Ignore close and change notifications when no open-document overlay exists.
    • Preserve normal synchronization behavior when an overlay is present.
  • Coverage

    • Add regression coverage for duplicate close and stale change notifications following an open/close sequence.

Co-authored-by: RyanCavanaugh <6685088+RyanCavanaugh@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix LSP panic due to overlay not found for changed file Prevent LSP panics on stale document notifications Aug 26, 2026
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

Successfully merging this pull request may close these issues.

LSP Panic: overlay not found for changed file

2 participants