Proper VSCode Intelisense
I'm having some problems when hovering new queries/actions created by me on the main.wasp.
I'm using the openSaaS template and the existing actions works the vscode intelisense as expected. (Example Print of it working when hovering the getPaginatedUsers with ctrl hold)
When doing the same with an action or query created by me, it doesn't works.
the second print (getPaginatedExams) it's my created query.
6 Replies
Hi @Rômullo. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
It seems like you're experiencing issues with IDE support for Wasp projects. This is a known issue and there's an open discussion about it on the Wasp GitHub page (source (https://github.com/wasp-lang/wasp/issues/570)).
The Wasp team is actively working on improving IDE support, including features like easily renaming a query, jumping to Wasp symbol definitions in Wasp files, detecting missing JS definitions in Wasp files, and jumping to JS definitions from Wasp files. However, some of these features might not be fully implemented yet.
If you're having specific issues with your own queries or actions, it might be due to the way they're defined or imported. Make sure you're following the correct syntax and import methods as outlined in the Wasp documentation.
If the problem persists, I recommend raising an issue on the Wasp GitHub page or reaching out to the Wasp community on Discord for more specific help.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
Sorry @Rômullo, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist:
Perhaps try again in 15mins?
also, i have the wasp extension installed and running.
well....i restarted the wasp language server and it was fixed, probably some caching or updating problem.
very juicy vscode theme tho 🙂
@Rômullo hm interesting! I actually didn't expect vscode to show typescript annotations for TS imports in main.wasp file. We will be doing some bigger changes here in the future so you can expect improved experience with time. Just to check, is the rest of stuff refreshing for you correctly? For example if you do a change to your code, does app in the browser update accordingly?
it was on the docs, just found out