This repository has been archived by the owner on Aug 12, 2023. It is now read-only.
Cancelling of linter requests when new changes are made #307
Labels
enhancement
New feature or request
Issues
Feature description
When a linter is slow, it may take a while for its diagnostics to appear. If you make new changes in the mean time, chances are those diagnostics are no longer relevant. In addition, these changes produce new diagnostics. The result is that once your first set of diagnostics are displayed, new diagnostics may be displayed almost immediately after.
As an example, consider this series of events:
debounce = 500
The result is that the diagnostics from step 3 are displayed at some point, then are cleared and the diagnostics from step 4 are displayed. As this process involves changing signs, underlines, etc this can be quite jarring.
It would be nice if null-ls could somehow either cancel outstanding requests, or just ignore the diagnostics produced if a new request for diagnostics is made.
This NeoVim PR might be useful for this: neovim/neovim#15949
Help
No
Implementation help
No response
The text was updated successfully, but these errors were encountered: