about summary refs log tree commit diff
path: root/docs/dev
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-07-30 16:27:10 +0000
committerGitHub <noreply@github.com>2021-07-30 16:27:10 +0000
commit33f12a3608c5ffede3ae51ca6883f5502ffcc8c6 (patch)
treea771f6f838bba971d0aeb008c68268ff9fde614c /docs/dev
parent1f817833e7fbf29d8305b0b938b516d96e555ace (diff)
parentbe84f85c1dab75c053e94712bc1028b548206c2f (diff)
downloadrust-33f12a3608c5ffede3ae51ca6883f5502ffcc8c6.tar.gz
rust-33f12a3608c5ffede3ae51ca6883f5502ffcc8c6.zip
Merge #9732
9732: feat: gate custom clint-side commands behind capabilities r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
Diffstat (limited to 'docs/dev')
-rw-r--r--docs/dev/lsp-extensions.md22
1 files changed, 21 insertions, 1 deletions
diff --git a/docs/dev/lsp-extensions.md b/docs/dev/lsp-extensions.md
index 1fb5237ba78..98098b69a98 100644
--- a/docs/dev/lsp-extensions.md
+++ b/docs/dev/lsp-extensions.md
@@ -1,5 +1,5 @@
 <!---
-lsp_ext.rs hash: 5f96a69eb3a5ebc3
+lsp_ext.rs hash: ad52054176909945
 
 If you need to change the above hash to make the test pass, please check if you
 need to adjust this doc as well and ping this issue:
@@ -743,3 +743,23 @@ const enum WorkspaceSymbolSearchKind {
     AllSymbols = "allSymbols"
 }
 ```
+
+## Client Commands
+
+**Experimental Client Capability:** `{ "commands?": ClientCommandOptions }`
+
+Certain LSP types originating on the server, notably code lenses, embed commands.
+Commands can be serviced either by the server or by the client.
+However, the server doesn't know which commands are available on the client.
+
+This extensions allows the client to communicate this info.
+
+
+```typescript
+export interface ClientCommandOptions {
+	/**
+	 * The commands to be executed on the client
+	 */
+	commands: string[];
+}
+```