Jump-to-table-definition TS plugin
Hey folks, I made a little TypeScript plugin while on vacation that lets you jump to the definition of Convex tables from your TypeScript code, show them on hover, and find their references:
https://github.com/xixixao/convex-typescript-plugin
Hope some of you find it helpful! (especially folks with bigger projects, @ampp , @deen , @stefano , @ibrahimyaacob )
GitHub
GitHub - xixixao/convex-typescript-plugin: Jump to Convex table sch...
Jump to Convex table schema definition. Contribute to xixixao/convex-typescript-plugin development by creating an account on GitHub.
5 Replies
This is really awesome!
I wonder if an approach like this could be used to remedy the loss of jump-to-definition for Convex function references when using the new (beta) static code generation feature?
The Effect folks have been leaning into this strategy lately to build some really cool things (https://github.com/Effect-TS/language-service). I bet that Convex could offer a lot of similar types of features as the ones they're building there (and as this one).
In any case very cool Michal, thanks for still cooking up that :convex: πͺ for us π
Ye I would love to see more TS compiler stuff.. Will these work with the new TS GO compiler tho?
Also im wondering if you can do refactorings with a TS compiler plugin? Would love to see a convex function rename refactor!
You absolutely can! If you check out that link to the Effect language service you can see a bunch of examples of the refactor features that it provides. I would also love a Convex function name refactor service, that would be so useful.
For renaming i think you need a whole language service, not just a TS plugin.
There are many TS plugins in the wild, so if Go impl deprecates them thatβd be surprising (but it could happen).
Thanks, ill definitely try it out π