ALEFileRename command added. (#4012)

* ALEFileRename command added.

This command renames file and uses tsserver `getEditsForFileRename` to
fix import paths in Typescript files.

* ale#util#Input fix

* Even more fixes.

* Linting error fix.
This commit is contained in:
Dalius Dobravolskas
2021-12-17 01:09:26 +02:00
committed by GitHub
parent e4ec2e4dc7
commit 5b792c7641
8 changed files with 385 additions and 2 deletions

View File

@@ -686,6 +686,8 @@ for a full list of options.
ALE supports renaming symbols in code such as variables or class names with
the |ALERename| command.
`ALEFileRename` will rename file and fix import paths (tsserver only).
|ALECodeAction| will execute actions on the cursor or applied to a visual
range selection, such as automatically fixing errors.
@@ -3368,6 +3370,9 @@ ALERename *ALERename*
The symbol where the cursor is resting will be the symbol renamed, and a
prompt will open to request a new name.
ALEFileRename *ALEFileRename*
Rename a file and fix imports using `tsserver`.
ALECodeAction *ALECodeAction*