Skip to content

Support rename/move of Svelte files #111

@dummdidumm

Description

@dummdidumm

Is your feature request related to a problem? Please describe.
Right now renaming/moving svelte files does not update the imports in other svelte files.

Describe the solution you'd like
Renaming/moving svelte files should update the imports in other svelte files.

Additional context
I dug around the language server protocol a little but found no event that says "file X moved from A to B" or "file X was renamed to Y". Instead, onDidCloseTextDocument and onDidOpenTextDocument events fire, and also the onCodeAction event is invoked with the new file path and a range with start/end of 0. One could infer a file rename/move from these events, if they appear shortly after each other, but I'm not sure if this is a hack or the only possible solution. If someone knows more about this, please comment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions