-
Couldn't load subscription status.
- Fork 1.5k
Description
I am not sure whether it is a limitation of VIM or ALE, so I hope anyone can clarify.
The problem is the following:
Steps:
- Suppose I'm editing on any file type, and ALE has marked lines 1, 4, and 5 as warnings
- I remove line 2. Now, ALE should move the highlights of 4 and 5 to line 3 and 4, immediately, and before even re-running the linter. However, it does not happen.
Depending on the file type and on other configs, I need to save or not save the file I'm editing for ALE to relint the file. Depending on the linter, it may take some time to for ALE to update the highlights (suppose a second or so).
The most troubling scenario is where I have, say - 10 lines consisting of 'imports' relevant to the programming language I am editing, and a few of them are marked 'unused imports'. If I go about and try to delete the unused imports starting from the top, I mess up deleting the wrong lines, because the highlights do not move only until I let ALE relint the file.
This issue also applies to intra-line highlights.
The bottom question is: Shouldn't ALE immediately update highlights according to removed added/removed text regarding-less of the linting process?