-
-
Notifications
You must be signed in to change notification settings - Fork 411
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: go to definition is not working #1124
Comments
You need to run a build first so the declaration files are emitted. We use declaration files to keep the tsc performance up as the project scales, a downside with that is that you lose "live types" |
In adition, if I use typescript workspace version in RubyMine, |
Same issue. It goes to definition only when this is set
instead of
with .d.ts it goes here instead of actual definition
|
Yes, I also edited it exactly as you did and now it works. Not sure if there are any consequences |
vscode performance |
Hm. I suspect this is a bug in TypeScript's @juliusmarminge, does t3-turbo's jump to definition work for you? I get this behavior as well: CleanShot.2024-08-30.at.21.35.00.mp4Unsure if there's anything we can do here from tRPC's standpoint |
I'll take a look on Monday but I know at our work repo I have jump to definition working with declaration emission |
This will be fixed by microsoft/TypeScript#60005 |
Provide environment information
System:
OS: macOS 14.5
CPU: (10) arm64 Apple M1 Pro
Memory: 57.50 MB / 32.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.11.1 - ~/.nodenv/versions/20.11.1/bin/node
Yarn: 1.22.19 - /opt/homebrew/bin/yarn
npm: 10.2.4 - ~/.nodenv/versions/20.11.1/bin/npm
pnpm: 9.6.0 - /opt/homebrew/bin/pnpm
bun: 1.0.0 - ~/.bun/bin/bun
Watchman: 2024.05.06.00 - /opt/homebrew/bin/watchman
Describe the bug
I cloned the repository, trying to navigate through code. I am unable to go to definition (as well as see usages) of procedure in both VSCode and RubyMine (IntelliJ). I have another project with simple Next.js tRPC without monorepo and it's working fine there. Any ideas?
rubymine.mp4
vscode.mp4
Link to reproduction
none, just clone template repo
To reproduce
Clone repo, try to navigate to definition
The text was updated successfully, but these errors were encountered: