"Find all references" in VSCode not working
Node.js: 18.17.1
@trpc/server@10.45.2
@trpc/client@10.45.2
TypeScript: Version 4.7.4
Using yarn with a monorepo setup with separate client and server workspaces. I tried adding a helloworld trpc router. Was able to call it from the client. One thing I was hoping would work nicely with trpc is jumping to the implementation and finding usages of an implementation.
When using "Go to Definition" on
hello
in trpcClient.hello.query()
I get taken to roughly the right place. The cursor is placed at the end of:
I would have expected the cursor to actually go to hello
in trpcRouter
. However more disappointingly when using "Find all references" on hello
in the trpcRouter
definition above TS only shows me that definition line and does not show the trpcClient.hello.query
call above.
So:
1. Is this supposed to work as nicely as I expect in VSCode across monorepo workspaces?
2. If so, what could I be doing wrong for it not to work?0 Replies