#does astro language server support updating import paths?

3 messages · Page 1 of 1 (latest)

merry moth
#

Whenever I try renaming an astro file, the paths don't update in vscode. Does astro's languager server not support it?

high jungleBOT
#

Hi @merry moth. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

The knowledge sources do not mention any support in the Astro language server or editor tooling for automatically updating import paths when you rename .astro files, nor do they describe a “rename symbol”/refactor feature for imports. They only cover:

  • General editor setup and what the official VS Code extension provides (syntax highlighting, IntelliSense, type info, etc.). [Editor setup]
  • How imports and import aliases work conceptually and via tsconfig.json. [Import statements; Aliases]

Because there is no explicit documentation about automatic import-path updates on file rename, I can’t confirm that this is supported. Based on the docs alone, you should not rely on Astro’s language server to update import paths automatically when renaming files in VS Code.

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: