about summary refs log tree commit diff
path: root/docs/dev
diff options
context:
space:
mode:
authorZac Pullar-Strecker <zacmps@gmail.com>2020-09-01 20:36:48 +1200
committerZac Pullar-Strecker <zacmps@gmail.com>2020-10-08 15:04:20 +1300
commit62b76e7004bc215a375e41bd204b2eab5acdf9c2 (patch)
treee857686dad5deef918ba76ecf3981fc4549a7f61 /docs/dev
parent974518fde7975b839ed4ccd4c5ce1d48cd6db3c7 (diff)
downloadrust-62b76e7004bc215a375e41bd204b2eab5acdf9c2.tar.gz
rust-62b76e7004bc215a375e41bd204b2eab5acdf9c2.zip
Document the protocol extension
Diffstat (limited to 'docs/dev')
-rw-r--r--docs/dev/lsp-extensions.md13
1 files changed, 12 insertions, 1 deletions
diff --git a/docs/dev/lsp-extensions.md b/docs/dev/lsp-extensions.md
index f1160bb1cc9..173c04a142a 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`