Skip to content

Add missing content-mapper LSP fallbacks - #65557

Merged
Andrew Branch (andrewbranch) merged 7 commits into
mainfrom
copilot/fix-content-mapper-fallbacks
Nov 18, 2026
Merged

Andrew Branch (andrewbranch) merged 7 commits into
mainfrom
copilot/fix-content-mapper-fallbacks

Conversation

@andrewbranch

@andrewbranch Andrew Branch (andrewbranch) commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

Fixes #65525

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
@typescript-automation typescript-automation Bot added For Uncommitted Bug PR for untriaged, rejected, closed or missing bug and removed For Milestone Bug PRs that fix a bug with a specific milestone labels Nov 17, 2026
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
@andrewbranch Andrew Branch (andrewbranch) changed the title [WIP] Fix missing content-mapper fallbacks causing internal LSP errors Add missing content-mapper LSP fallbacks Nov 18, 2026
@andrewbranch
Andrew Branch (andrewbranch) marked this pull request as ready for review November 18, 2026 17:32
Copilot AI balanced review requested due to automatic review settings November 18, 2026 17:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The mapper-removal fallback returns a protocol-invalid null for completionItem/resolve; it must return the original item or a ContentModified error, with the regression test updated accordingly.

1 open issue
What changed in this PR

Addresses #65525 by extending TypeScript’s language-server fallbacks for requests received after a content mapper is removed.

Changes:

  • Adds null fallbacks for additional document features, call hierarchy requests, and completion-item resolution.
  • Expands regression coverage for stale mapped-file requests, including the existing ContentModified response for code-lens resolution.
File Description
tsc/​internal/​lsp/​server.go Expands the methods handled by content-mapper fallback responses.
tsc/​internal/​lsp/​server_contentmapper_test.go Tests additional fallback responses after mapper removal.

Review effort: Balanced

Comment thread tsc/internal/lsp/server.go Resolved
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Comment thread tsc/internal/lsp/server.go Resolved
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues block approval of the language-server fallback changes.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

@andrewbranch
Andrew Branch (andrewbranch) added this pull request to the merge queue Nov 18, 2026
Merged via the queue into main with commit 26d0ee8 Nov 18, 2026
35 checks passed
@andrewbranch
Andrew Branch (andrewbranch) deleted the copilot/fix-content-mapper-fallbacks branch November 18, 2026 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing content-mapper fallbacks cause internal LSP errors

4 participants