T
TanStack2y ago
fair-rose

Jetbrains IDEs <Link to='...'> route completion

Hi, I'm new to Tanstack Router and I'm just playing around with it at this point in time. This isn't necessarily Tanstack router related, but I've seen code completion suggestions demo'd for the to prop on Link in the announcement tweet https://twitter.com/tannerlinsley/status/1738709130213560497. I do get proper type linting for the routes, just no suggestions, so I'm not too worried. I'm just wondering how I'd configure this in my IDE, if at all possible. I'm using Jetbrains Goland so maybe this only occurs in WebStorm if at all, so it might just be a limitation of my IDE. EDIT: So I figured it out. Seems as though Jetbrains only provides suggestions when the curly braces are present (i.e. <Link to={"..."}> ) unlike how it is demo'd in the linked tweet.
1 Reply
wise-white
wise-white2y ago
It seems to be an implementation limitation with how the IDE is leveraging the TS LSP. Maybe one of Jetbrains web/TS -focused offerings might have better support.

Did you find this page helpful?