nolanderc / glsl_analyzer

Language server for GLSL (autocomplete, goto-definition, formatter, and more)
GNU General Public License v3.0
180 stars 5 forks source link

Bug (Neovim): Diagnostics not working #63

Open m0tholith opened 2 months ago

m0tholith commented 2 months ago

Diagnostics don't really work on Neovim. Completion, documentation and everything else works well, attached is my LSP logfile: lsp.log

nolanderc commented 1 month ago

Yeah, I never got around to publishing diagnostics to the client, even though we collect them during parsing.

Diagnostics are published as a LSP notification from the server to the client, and so far this isn't implemented, and thus would need some work (altough, likely not that much).

With that implemented, we could send notifications upon receiving a textDocument/didChange or textDocument/didOpen request from the client. But we probably need some mechanism for queuing notifications, so that we don't send the notification until after having responded to the initial request.

I probably won't have the time to work on this for a while, but PRs are always welcome.