Skip to content

Fix workspace/symbol crash on an inferred project without a program - #64642

Open
Mateusz Burzyński (Andarist) wants to merge 1 commit into
microsoft:mainfrom
Andarist:fix-workspace-symbol-inferred-project-program
Open

Mateusz Burzyński (Andarist) wants to merge 1 commit into
microsoft:mainfrom
Andarist:fix-workspace-symbol-inferred-project-program

Conversation

@Andarist

Copy link
Copy Markdown
Contributor

fixes the issue reported here: #64623 (comment)

Copilot AI balanced review requested due to automatic review settings October 5, 2026 13:07
@typescript-automation typescript-automation Bot added For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels Oct 5, 2026
@typescript-automation

Copy link
Copy Markdown
Contributor

This PR doesn't have any linked issues. Please open an issue that references this PR. From there we can discuss and prioritise.

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.

Copilot review overview

🟢 Approval recommended

The targeted fix and regression coverage address the initialization gap, with no unresolved review findings.

Review effort: Balanced
Findings: None

What changed in this PR

Fixes a language-server workspace/symbol crash when a newly created inferred project has no program.

Changes:

  • Updates the inferred project's program even when the default project is unchanged.
  • Adds a regression test covering an orphaned file and a subsequent workspace-symbol request.
File Description
tsc/​internal/​project/​projectcollectionbuilder.go Moves inferred-program updates outside the default-project change check.
tsc/​internal/​fourslash/​tests/​workspaceSymbolNewInferredProject_test.go Tests the project transition that previously caused the crash.

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

Status: Not started

Development

Successfully merging this pull request may close these issues.

2 participants