Skip to content

Fix go-to-type-definition for tuple aliases - #63913

Open
Mateusz Burzyński (Andarist) wants to merge 1 commit into
microsoft:mainfrom
Andarist:fix-tuple-alias-type-definition
Open

Fix go-to-type-definition for tuple aliases#63913
Mateusz Burzyński (Andarist) wants to merge 1 commit into
microsoft:mainfrom
Andarist:fix-tuple-alias-type-definition

Conversation

@Andarist

Copy link
Copy Markdown
Contributor

fixes #63762

Copilot AI balanced review requested due to automatic review settings August 20, 2026 12:35
@typescript-automation typescript-automation Bot added For Milestone Bug PRs that fix a bug with a specific milestone labels Aug 20, 2026
@github-project-automation github-project-automation Bot moved this to Not started in PR Backlog Aug 20, 2026

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.

Pull request overview

Fixes go-to-type-definition for tuple aliases by falling back to the type’s alias symbol when no direct symbol exists.

Changes:

  • Resolve declarations through alias symbols.
  • Add regression coverage for a named tuple alias.
  • Update the expected fourslash baseline.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
tsc/internal/ls/definition.go Adds alias-symbol fallback for type declarations.
tsc/internal/fourslash/tests/goToTypeWithTupleTypes_test.go Adds the tuple-alias regression case.
tsc/testdata/baselines/reference/fourslash/goToType/goToTypeWithTupleTypes1.baseline.jsonc Records the expected navigation targets.

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

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

Labels

For Milestone Bug PRs that fix a bug with a specific milestone

Projects

Status: Not started

Development

Successfully merging this pull request may close these issues.

Go-to-type definition does not work on aliases to tuple types

2 participants