diff options
Diffstat (limited to 'docs')
-rw-r--r-- | docs/dev/lsp-extensions.md | 18 | ||||
-rw-r--r-- | docs/dev/style.md | 4 |
2 files changed, 19 insertions, 3 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 | <!--- |
2 | lsp_ext.rs hash: d279d971d4f62cd7 | 2 | lsp_ext.rs hash: 4dfa8d7035f4aee7 |
3 | 3 | ||
4 | If you need to change the above hash to make the test pass, please check if you | 4 | If you need to change the above hash to make the test pass, please check if you |
5 | need to adjust this doc as well and ping this issue: | 5 | need 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 | |||
585 | This 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 | ||
594 | interface TestInfo { | ||
595 | runnable: Runnable; | ||
596 | } | ||
597 | ``` | ||
diff --git a/docs/dev/style.md b/docs/dev/style.md index 46bd8b9b2..c4eb7bc7a 100644 --- a/docs/dev/style.md +++ b/docs/dev/style.md | |||
@@ -91,8 +91,8 @@ But many users read changelogs. | |||
91 | We don't enforce Clippy. | 91 | We don't enforce Clippy. |
92 | A number of default lints have high false positive rate. | 92 | A number of default lints have high false positive rate. |
93 | Selectively patching false-positives with `allow(clippy)` is considered worse than not using Clippy at all. | 93 | Selectively patching false-positives with `allow(clippy)` is considered worse than not using Clippy at all. |
94 | There's `cargo xtask lint` command which runs a subset of low-FPR lints. | 94 | There's a `cargo lint` command which runs a subset of low-FPR lints. |
95 | Careful tweaking of `xtask lint` is welcome. | 95 | Careful tweaking of `lint` is welcome. |
96 | Of course, applying Clippy suggestions is welcome as long as they indeed improve the code. | 96 | Of course, applying Clippy suggestions is welcome as long as they indeed improve the code. |
97 | 97 | ||
98 | **Rationale:** see [rust-lang/clippy#5537](https://github.com/rust-lang/rust-clippy/issues/5537). | 98 | **Rationale:** see [rust-lang/clippy#5537](https://github.com/rust-lang/rust-clippy/issues/5537). |