#VS Goto Definition Broken
4 messages · Page 1 of 1 (latest)
Hi @novel thistle. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
Based on the knowledge sources provided, I don't have specific information about VS Code's "Go to Definition" feature not working in Astro projects. The documentation doesn't directly address this particular issue.
However, there are a few things you might want to check:
-
Make sure you have the Astro VS Code extension installed, as mentioned in the TypeScript guide. This extension is important for proper editor support.
-
Check if your project has a
tsconfig.jsonfile. According to the documentation, "some features (like npm package imports) aren't fully supported in the editor without atsconfig.jsonfile." Project structure -
If you're using Svelte components, ensure you have a
svelte.config.jsfile in your project root, which is required for IDE autocompletion in Astro v2.0+. Svelte IDE support
If you're still experiencing issues, you might want to:
- Create a minimal reproduction of your issue as described in the troubleshooting guide
- Reach out to the Astro community on Discord in the
#supportforum channel for more specific help with your editor setup. Need more help
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
@novel thistle Kapa.ai is still learning and improving, please let me know how I did by reacting below.