Skip to content

[lsp]: instance of Go to Definition going to the type definition instead. #1528

@joshcartme

Description

@joshcartme

Steps to reproduce

https://github.com/joshcartme/tsgo-repros/tree/main/goto-definition

In the above, using the typescript-native preview extension 0.20250806.1 in VSCode:

With tsgo disabled (so using strada), ctrl/cmd clicking or right clicking and selecting go to definition on someAction() (line 3 of index.ts) correctly shows the definition in a pop-out:

Image

With tsgo enabled, doing the same takes you to the type definition in node_modules/redux-act/types.d.ts:

Image

vs

Using either tsc or tsgo ctrl/cmd clicking otherThing() (line 5 of index.ts) correctly goes to the definition.

Behavior with typescript@5.8

You see the definition.

Behavior with tsgo

You are taken to the type definition

Metadata

Metadata

Assignees

Labels

Domain: EditorRelated to the LSP server, editor experiencebugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions