-
-
Notifications
You must be signed in to change notification settings - Fork 219
Description
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.