mattn / efm-langserver

General purpose Language Server
MIT License
1.36k stars 61 forks source link

How can I check the status of an efm linter? #237

Open TamaMcGlinn opened 1 year ago

TamaMcGlinn commented 1 year ago

I have a linter which takes a variable amount of time to run (anywhere between 2 seconds and up to 1 minute), and I would like to have some way of distinguishing between 'linting done, no errors' and 'linting still busy'.

So I made a wrapper which I pass instead of the actual linter, that outputs 'Warning: linter started' first, then runs the actual linter, and then outputs 'Warning: linter finished' and that works once - but since the warnings are persistent and remain visible until a fresh linter execution finishes, the 'linter finished' message from the previous run remains visible, so I still can't tell if the current linter execution is finished after each edit to the file.

Note I originally posted this on vim stackexchange but someone suggested it fits better here and I agree.