helix/helix-term/src/ui
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
..
fuzzy_match Treat space as a seperator instead of a character in fuzzy picker 2022-10-11 12:25:28 +09:00
completion.rs lsp: Check server provider capabilities (#3554) 2022-11-22 11:52:23 +09:00
editor.rs minor: render_diagnostics doesn't require &self either 2022-11-19 15:41:55 +09:00
fuzzy_match.rs Treat space as a seperator instead of a character in fuzzy picker 2022-10-11 12:25:28 +09:00
info.rs Refactor Margin for fine grained control (#2727) 2022-06-22 01:52:08 +09:00
lsp.rs Fix signature help panic when too large (#4030) 2022-10-03 23:56:24 +09:00
markdown.rs Render html <code> tags as code in markdown (#3425) 2022-09-13 05:14:16 -04:00
menu.rs lsp: Resolve completion item asynchronously on idle-timeout (#4781) 2022-11-19 03:27:46 +09:00
mod.rs Add preview for scratch buffers in buffer picker (#3454) 2022-11-20 19:58:35 -06:00
overlay.rs Add bracketed paste (#3233) 2022-08-29 09:48:49 +09:00
picker.rs Add preview for scratch buffers in buffer picker (#3454) 2022-11-20 19:58:35 -06:00
popup.rs Popup scrollbar (#4449) 2022-11-15 23:15:52 +09:00
prompt.rs Refactor blackhole register (#4504) 2022-11-15 23:14:18 +09:00
spinner.rs Instant is more suitable than SystemTime for spinners 2022-02-10 11:12:47 +09:00
statusline.rs Avoid repeatedly loading config 2022-11-19 15:41:03 +09:00
text.rs fix: Allow multi-line prompt documentation 2022-02-20 14:44:44 +09:00