helix/helix-term/src
Michael Davis 9059c65a53
lsp: Check server provider capabilities (#3554)
Language Servers may signal that they do not support a method in
the initialization result (server capabilities). We can check these
when making LSP requests and hint in the status line when a method
is not supported by the server. This can also prevent crashes in
servers which assume that clients do not send requests for methods
which are disabled in the server capabilities.

There is an existing pattern the LSP client module where a method
returns `Option<impl Future<Output = Result<_>>>` with `None` signaling
no support in the server. This change extends this pattern to the rest
of the client functions. And we log an error to the statusline for
manually triggered LSP calls which return `None`.
2022-11-22 11:52:23 +09:00
..
commands lsp: Check server provider capabilities (#3554) 2022-11-22 11:52:23 +09:00
keymap Change diagnostic picker keybind to <space>d (#4229) 2022-10-17 16:45:42 +09:00
ui lsp: Check server provider capabilities (#3554) 2022-11-22 11:52:23 +09:00
application.rs Handle language server termination (#4797) 2022-11-19 13:14:36 +09:00
args.rs Fix confusion with using --hsplit --vsplit on startup at same time (#4202) 2022-10-11 09:25:42 -04:00
commands.rs lsp: Check server provider capabilities (#3554) 2022-11-22 11:52:23 +09:00
compositor.rs fix test compilation 2022-11-09 22:17:14 +09:00
config.rs Move top level lsp config to editor.lsp (#1868) 2022-03-28 10:11:52 +09:00
health.rs Show clipboard info in --health output (#2947) 2022-09-01 01:23:45 +09:00
job.rs remove Callback::Compositor variant 2022-10-18 22:31:39 -04:00
keymap.rs Improve keymap errors from command typos (#3931) 2022-09-22 09:30:42 +08:00
lib.rs Add refresh-config and open-config command (#1803) 2022-03-25 18:05:20 +09:00
main.rs document should save even if formatter fails 2022-10-18 22:31:39 -04:00