wasp-lang / wasp

The fastest way to develop full-stack web apps with React & Node.js.
https://wasp-lang.dev
MIT License
13.76k stars 1.18k forks source link

Improve how go-to-definition behaves for Wasp SDK #1986

Open sodic opened 6 months ago

sodic commented 6 months ago

We want the Ctrl+click (go to definition) command to take the user to the symbol's definition inside a source file (TypeScript).

What happens instead:

What we want to happen:

Check the tanstack packages to see how it's done.

[!NOTE] I believe this was working after 0.12.0. It was possibly broken during the fixing effort. However takes on this issue, please check whether this is right so we know what to prevent.

sodic commented 2 months ago

Idea: This might be fixable with "declarationMap": true in TS config. Sources: