Go To Type Definition fails if the identifier is a type name #46627
Labels
Effort: Casual
Good issue if you're already used to contributing to the codebase. Harder than "good first issue".
Experience Enhancement
Noncontroversial enhancements
Help Wanted
You can do this
Suggestion
An idea for TypeScript
Milestone
Bug Report
Go To Type Definition fails if the identifier is a type name. This is confusing. Instead, Go to Type Definition should navigate to the declaration of the type.
I'm filing this bug as requested by @weswigham in #6209 (comment)
🔎 Search Terms
Go To Type Definition
🕗 Version & Regression Information
⏯ Playground Link
This issue cannot be reproduced in TS Playground because the "Go to Type Definition" context menu is not available in the Playground.
However, reproducing it in VSCode is trivial.
💻 Code
🙁 Actual behavior
🙂 Expected behavior
Navigates to the declaration of
T
The text was updated successfully, but these errors were encountered: