aboutsummaryrefslogtreecommitdiff
path: root/docs/dev/lsp-extensions.md
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-03-13 13:50:35 +0000
committerGitHub <[email protected]>2021-03-13 13:50:35 +0000
commit7accf6bc37c059a83a58c82f463f02a02ed2226f (patch)
tree979c8ebe39bde9c989cb1a09f06cea4cf7cb04ac /docs/dev/lsp-extensions.md
parent9674490b45a931399a9a05cd3a4c7e8fae9ec2a8 (diff)
parent49cdb2452a225dec3834e69fb011c3d7e68084f7 (diff)
Merge #7799
7799: Related tests r=matklad a=vsrs ![tests](https://user-images.githubusercontent.com/62505555/109397453-a9013680-7947-11eb-8b11-ac03079f7645.gif) This adds an ability to look for tests for the item under the cursor: function, constant, data type, etc The LSP part is bound to change. But the feature itself already works and I'm looking for a feedback :) Co-authored-by: vsrs <[email protected]>
Diffstat (limited to 'docs/dev/lsp-extensions.md')
-rw-r--r--docs/dev/lsp-extensions.md18
1 files changed, 17 insertions, 1 deletions
diff --git a/docs/dev/lsp-extensions.md b/docs/dev/lsp-extensions.md
index dd3ecc18d..694fafcd5 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: 4dfa8d7035f4aee7
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,19 @@ 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:** `TextDocumentPositionParams`
590
591**Response:** `TestInfo[]`
592
593```typescript
594interface TestInfo {
595 runnable: Runnable;
596}
597```