aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvsrs <[email protected]>2021-02-27 18:07:58 +0000
committervsrs <[email protected]>2021-02-27 18:07:58 +0000
commit5e88436517637dfe34ccdb98b71147ce78f744a5 (patch)
treed1eafb08216c24a2176a327d21d5a70a9b941acd
parent45d4e6b639b627ef9926ecfbc150cdfe8c292ae1 (diff)
Update lsp-extensions.md
-rw-r--r--docs/dev/lsp-extensions.md23
1 files changed, 22 insertions, 1 deletions
diff --git a/docs/dev/lsp-extensions.md b/docs/dev/lsp-extensions.md
index 164c8482e..c5f439083 100644
--- a/docs/dev/lsp-extensions.md
+++ b/docs/dev/lsp-extensions.md
@@ -1,5 +1,5 @@
1<!--- 1<!---
2lsp_ext.rs hash: d279d971d4f62cd7 2lsp_ext.rs hash: 9d4978a16ab69027
3 3
4If you need to change the above hash to make the test pass, please check if you 4If you need to change the above hash to make the test pass, please check if you
5need to adjust this doc as well and ping this issue: 5need to adjust this doc as well and ping this issue:
@@ -579,3 +579,24 @@ This request is sent from client to server to open the current project's Cargo.t
579``` 579```
580 580
581`experimental/openCargoToml` returns a single `Link` to the start of the `[package]` keyword. 581`experimental/openCargoToml` returns a single `Link` to the start of the `[package]` keyword.
582
583## Related tests
584
585This request is sent from client to server to get the list of tests for the specified position.
586
587**Method:** `rust-analyzer/relatedTests`
588
589**Request:**
590
591```typescript
592interface RelatedTestsParams : extends TextDocumentPositionParams {
593}
594```
595
596**Response:** `TestInfo[]`
597
598```typescript
599interface TestInfo {
600 runnable: Runnable;
601}
602```