mattn / efm-langserver

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

Support workspace level linters #193

Closed Matts966 closed 2 years ago

Matts966 commented 2 years ago

Resolves #143

Thank you for creating this great software. I would like to use efm-langserver with my linter to check all the files in a workspace, and need a feature described below.

To implement 🌟, we need to have a state for last published document URIs, because language servers should publish empty diagnostics to erase previous diagnostics as specified in LSP. I define the state as lastPublishedURIs, and added LintWorkspace option for this feature.

I would appreciate it if you would review it.

mattn commented 2 years ago

Thank you!