How do you deal with ALEFileRename and git? #5017
-
|
after manually move back and then Whatever I do always feels messy. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
As long as the changes are small enough for To be honest, I had never previously heard of A theoretical ALE improvement would be to make it possible to get the operation status and the new name back somehow, but it's not fully trivial and the command can't be made to return them since communication with the tsserver is asynchronous. If you see a way to do that, please suggest a patch. It would make sense to be able for users to have custom commands calling both |
Beta Was this translation helpful? Give feedback.
As long as the changes are small enough for
git mv <old-file> <new-file>to work,git rm -f <old-file>+git add <new-file>should work too. So there should be no need to do that extra dance step.To be honest, I had never previously heard of
:ALEFileRename, which I see only works for tsserver.A theoretical ALE improvement would be to make it possible to get the operation status and the new name back somehow, but it's not fully trivial and the command can't be made to return them since communication with the tsserver is asynchronous. If you see a way to do that, please suggest a patch. It would make sense to be able for users to have custom commands calling both
ALEFileRenameand sayGmove…