From 62b76e7004bc215a375e41bd204b2eab5acdf9c2 Mon Sep 17 00:00:00 2001 From: Zac Pullar-Strecker Date: Tue, 1 Sep 2020 20:36:48 +1200 Subject: Document the protocol extension --- docs/dev/lsp-extensions.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'docs/dev/lsp-extensions.md') diff --git a/docs/dev/lsp-extensions.md b/docs/dev/lsp-extensions.md index f1160bb1c..173c04a14 100644 --- a/docs/dev/lsp-extensions.md +++ b/docs/dev/lsp-extensions.md @@ -303,7 +303,7 @@ SSR with query `foo($a, $b) ==>> ($a).foo($b)` will transform, eg `foo(y + 5, z) **Server Capability:** `{ "matchingBrace": boolean }` -This request is send from client to server to handle "Matching Brace" editor action. +This request is sent from client to server to handle "Matching Brace" editor action. **Method:** `experimental/matchingBrace` @@ -386,6 +386,17 @@ rust-analyzer supports only one `kind`, `"cargo"`. The `args` for `"cargo"` look } ``` +## Open External Documentation + +This request is send from client to server to get a URL to documentation for the symbol under the cursor, if available. + +**Method** `experimental/externalDocs` + +**Request:**: `TextDocumentPositionParams` + +**Response** `string | null` + + ## Analyzer Status **Method:** `rust-analyzer/analyzerStatus` -- cgit v1.2.3