Skip to content

Commit 62b76e7

Browse files
committed
Document the protocol extension
1 parent 974518f commit 62b76e7

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

docs/dev/lsp-extensions.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ SSR with query `foo($a, $b) ==>> ($a).foo($b)` will transform, eg `foo(y + 5, z)
303303

304304
**Server Capability:** `{ "matchingBrace": boolean }`
305305

306-
This request is send from client to server to handle "Matching Brace" editor action.
306+
This request is sent from client to server to handle "Matching Brace" editor action.
307307

308308
**Method:** `experimental/matchingBrace`
309309

@@ -386,6 +386,17 @@ rust-analyzer supports only one `kind`, `"cargo"`. The `args` for `"cargo"` look
386386
}
387387
```
388388

389+
## Open External Documentation
390+
391+
This request is send from client to server to get a URL to documentation for the symbol under the cursor, if available.
392+
393+
**Method** `experimental/externalDocs`
394+
395+
**Request:**: `TextDocumentPositionParams`
396+
397+
**Response** `string | null`
398+
399+
389400
## Analyzer Status
390401

391402
**Method:** `rust-analyzer/analyzerStatus`

0 commit comments

Comments
 (0)