mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-10 15:14:32 +00:00
Update lsp-extensions.md
This commit is contained in:
parent
45d4e6b639
commit
5e88436517
1 changed files with 22 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue