rust-analyzer/crates
Aleksey Kladov be84f85c1d feat: gate custom clint-side commands behind capabilities
Some features of rust-analyzer requires support for custom commands on
the client side. Specifically, hover & code lens need this.

Stock LSP doesn't have a way for the server to know which client-side
commands are available. For that reason, we historically were just
sending the commands, not worrying whether the client supports then or
not.

That's not really great though, so in this PR we add infrastructure for
the client to explicitly opt-into custom commands, via `extensions`
field of the ClientCapabilities.

To preserve backwards compatability, if the client doesn't set the
field, we assume that it does support all custom commands. In the
future, we'll start treating that case as if the client doesn't support
commands.

So, if you maintain a rust-analyzer client and implement
`rust-analyzer/runSingle` and such, please also advertise this via a
capability.
2021-07-30 19:16:33 +03:00
..
base_db Complete editable private items 2021-07-23 19:57:16 +02:00
cfg internal: add simple smoke test for project model 2021-07-20 16:23:57 +03:00
flycheck internal: a bit more of cwd safety for flycheck 2021-07-17 18:13:35 +03:00
hir Make flyimport respect #[doc(hidden)] 2021-07-28 19:22:59 +02:00
hir_def Merge #9700 2021-07-28 12:07:25 +00:00
hir_expand Add Limit struct. 2021-07-19 13:26:11 +01:00
hir_ty Merge #9706 2021-07-29 16:14:10 +00:00
ide Refine extraction targets of extract_function assist 2021-07-29 15:45:05 +02:00
ide_assists Merge #9706 2021-07-29 16:14:10 +00:00
ide_completion Make flyimport respect #[doc(hidden)] 2021-07-28 19:22:59 +02:00
ide_db Merge #9706 2021-07-29 16:14:10 +00:00
ide_diagnostics Remove the legacy macro scoping hack 2021-07-26 19:58:14 +02:00
ide_ssr minor: drop dummy authors field 2021-07-05 14:19:41 +03:00
limit Add Limit struct. 2021-07-19 13:26:11 +01:00
mbe minor: drop dummy authors field 2021-07-05 14:19:41 +03:00
parser Fix generic_arg not parsing opt_generic_arg_list properly in arg lists 2021-07-26 15:21:19 +02:00
paths Fix AbsPath::ends_with 2021-07-18 10:25:14 +03:00
proc_macro_api internal: a bit more of cwd safety for flycheck 2021-07-17 18:13:35 +03:00
proc_macro_srv internal: a bit more of cwd safety for flycheck 2021-07-17 18:13:35 +03:00
proc_macro_test cargo_metadata 0.14 2021-07-09 11:01:55 -04:00
profile minor: drop dummy authors field 2021-07-05 14:19:41 +03:00
project_model internal: add simple smoke test for project model 2021-07-20 16:23:57 +03:00
rust-analyzer feat: gate custom clint-side commands behind capabilities 2021-07-30 19:16:33 +03:00
sourcegen minor: make sure that project_root works correctly 2021-07-13 15:02:29 +03:00
stdx Remove proc macro management thread 2021-07-08 16:43:39 +02:00
syntax Use more strictly typed syntax nodes for analysis in extract_function assist 2021-07-29 17:26:37 +02:00
test_utils Complete editable private items 2021-07-23 19:57:16 +02:00
text_edit minor: drop dummy authors field 2021-07-05 14:19:41 +03:00
toolchain minor: drop dummy authors field 2021-07-05 14:19:41 +03:00
tt minor: drop dummy authors field 2021-07-05 14:19:41 +03:00
vfs internal: make it easier to isolate IO 2021-07-17 17:55:16 +03:00
vfs-notify Bump notify to 5.0.0-pre.11 2021-07-28 10:09:58 -07:00