Update lsp-extensions.md

This commit is contained in:
vsrs 2021-02-27 21:07:58 +03:00
parent 45d4e6b639
commit 5e88436517

View file

@ -1,5 +1,5 @@
<!---
lsp_ext.rs hash: d279d971d4f62cd7
lsp_ext.rs hash: 9d4978a16ab69027
If you need to change the above hash to make the test pass, please check if you
need 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
```
`experimental/openCargoToml` returns a single `Link` to the start of the `[package]` keyword.
## Related tests
This request is sent from client to server to get the list of tests for the specified position.
**Method:** `rust-analyzer/relatedTests`
**Request:**
```typescript
interface RelatedTestsParams : extends TextDocumentPositionParams {
}
```
**Response:** `TestInfo[]`
```typescript
interface TestInfo {
runnable: Runnable;
}
```