helix-mods/helix-term/src
Michael Davis 7547a961bb
Discard LSP publishDiagnostic when LS is not initialized (#3403)
This is invalid according to the [LSP spec]:

> In addition the server is not allowed to send any requests
> or notifications to the client until it has responded with an
> InitializeResult, with the exception that during the initialize
> request the server is allowed to send the notifications
> window/showMessage, window/logMessage and telemetry/event as well
> as the window/showMessageRequest request to the client.

So we should discard the message when the language server is not
yet initialized. This can happen if the server sends
textDocument/publishDiagnostics before responding to the initialize
request. clojure-lsp appears to exhibit this behavior in the wild.

[LSP Spec]: https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#initialize
2022-08-31 17:47:18 +09:00
..
commands Derive Document language name from languages.toml name key (#3338) 2022-08-30 10:59:45 +09:00
keymap let extend-line respect range direction (#3046) 2022-08-29 10:00:40 +09:00
ui Move mode transition logic to handle_keymap_event() (#2634) 2022-08-31 10:44:06 +09:00
application.rs Discard LSP publishDiagnostic when LS is not initialized (#3403) 2022-08-31 17:47:18 +09:00
args.rs add a CLI flag for specifying config file location (#2666) 2022-08-04 13:05:52 +09:00
commands.rs jumplist: Add documents to view history (#3593) 2022-08-31 10:45:47 +09:00
compositor.rs Add bracketed paste (#3233) 2022-08-29 09:48:49 +09:00
config.rs Move top level lsp config to editor.lsp (#1868) 2022-03-28 10:11:52 +09:00
health.rs Reduce health tick width 2022-08-22 19:27:26 -05:00
job.rs fix(command): write-quit: do not quit if write fails 2022-06-18 23:57:47 -04:00
keymap.rs Reuse menu::Item trait in picker (#2814) 2022-07-02 13:21:27 +02:00
lib.rs Add refresh-config and open-config command (#1803) 2022-03-25 18:05:20 +09:00
main.rs add a CLI flag for specifying config file location (#2666) 2022-08-04 13:05:52 +09:00