Skip to content
This repository was archived by the owner on Nov 17, 2025. It is now read-only.

🐛 BUG: lsp breaks on file change until restart #1051

@Alipourzadi

Description

@Alipourzadi

Describe the Bug

When I rename or move a .astro file, the Astro LSP completely fails to recognize it.
After the rename/move:

  • The new path does not appear in imports or auto-complete.
  • The LSP no longer recognizes the file content at all.
  • Type checking, completion, and import suggestions fail for that file.

I must restart the Astro language server manually for the updated file to be detected.

I'm using neovim with the latest astro lsp version

Image

Steps to Reproduce

  • Create a .astro file, e.g.:
    src/components/Test.astro

  • Rename or move it to:
    src/ui/Test.astro

  • Try to:
    auto-import it
    use “Go to Definition”

Link to Minimal Reproducible Example

..

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs triageIssue needs to be triaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions