LSP Navigation from RTK Query Codegen Hooks to Endpoint Definitions? #5055
-
Hi team — is there a way to enable LSP "go to definition" from generated RTK Query hooks (e.g., Currently, navigation stops at the exported hook. I'm using the codegen-generated hooks (queries, lazyQueries, mutations). Would love to know if there's a way (e.g. JSDoc annotations, post-processing, etc.) to enable this Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Agreed this would be nice, and it's been asked for a few times (don't have issue links handy atm). Unfortunately, what I've been told by folks who know TS better is that the way we do TS type mapping makes it impossible to preserve the information link in a way that would make that possible. Not sure if there's any alternative approaches that would work, and haven't had time to try investigating it. |
Beta Was this translation helpful? Give feedback.
Agreed this would be nice, and it's been asked for a few times (don't have issue links handy atm).
Unfortunately, what I've been told by folks who know TS better is that the way we do TS type mapping makes it impossible to preserve the information link in a way that would make that possible. Not sure if there's any alternative approaches that would work, and haven't had time to try investigating it.