grain-lang / grain-language-server

Grain support for Visual Studio Code
24 stars 6 forks source link

Feature Request: Regen File Errors On Refocus #158

Open spotandjake opened 1 year ago

spotandjake commented 1 year ago

Currently the grain lsp only reruns when you modify the file this is nice but if you are fixing an issue in another file and come back that error is still there until you change it, it would be nice if on refocus to the file the lsp reran.

phated commented 1 year ago

@spotandjake I think this is probably a feature request for the vscode "language server protocol" library because if they would send a request, we'd respond. I might be wrong, so more investigation is required.

spotandjake commented 2 weeks ago

Investigating this a little more I think this may be best handled by silo. We currently keep a hashtable of all the compiled files and we only update the compilation of a file when it is edited, silo will allow us to track project dependencies and manage this neatly.