#VS Goto Definition Broken

4 messages · Page 1 of 1 (latest)

novel thistle
#

When I try to go to definition nothing happens. What setting have I changed?

nova axleBOT
#

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:

  1. Make sure you have the Astro VS Code extension installed, as mentioned in the TypeScript guide. This extension is important for proper editor support.

  2. Check if your project has a tsconfig.json file. According to the documentation, "some features (like npm package imports) aren't fully supported in the editor without a tsconfig.json file." Project structure

  3. If you're using Svelte components, ensure you have a svelte.config.js file 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 #support forum 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.