You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lsp-rust: Add support for opening external docs (#3072)
* lsp-rust: Add support for opening external docs
Add support for using the rust-analyzer 'experimental/externalDocs'
request to get a URL for external documentation.
* [docs] Add documentation for lsp-rust-analyzer-open-external-docs
Copy file name to clipboardExpand all lines: docs/manual-language-docs/lsp-rust-analyzer.md
+8-2Lines changed: 8 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -62,15 +62,21 @@ Get a list of possible auto import candidates with `lsp-execute-code-action`
62
62
63
63
`lsp-rust-analyzer-open-cargo-toml` opens the Cargo.toml closest to the current file. Calling it with a universal argument will open the Cargo.toml in another window.
64
64
65
-
Corresponds to [the rust-analyzer LSP extension](https://github.com/rust-analyzer/rust-analyzer/blob/master/docs/dev/lsp-extensions.md#open-cargotoml)
65
+
Corresponds to [the rust-analyzer LSP extension](https://github.com/rust-analyzer/rust-analyzer/blob/master/docs/dev/lsp-extensions.md#open-cargotoml)
`lsp-rust-analyzer-open-external-docs` opens external documentation related to the current position in a browser.
72
+
73
+
Corresponds to [the rust-analyzer LSP extension](https://github.com/rust-analyzer/rust-analyzer/blob/master/docs/dev/lsp-extensions.md#open-external-documentation)
74
+
69
75
### Find and execute tests related to current position
70
76
71
77
`lsp-rust-analyzer-related-tests` find all tests related to the current position, asks for user completion and executes the selected test in a compilation buffer.
72
78
73
-
Corresponds to [the rust-analyzer LSP extension](https://github.com/rust-analyzer/rust-analyzer/blob/master/docs/dev/lsp-extensions.md#related-tests)
79
+
Corresponds to [the rust-analyzer LSP extension](https://github.com/rust-analyzer/rust-analyzer/blob/master/docs/dev/lsp-extensions.md#related-tests)
74
80
75
81
In the example below, first you see that:
76
82
+ On the left, the function `check_infer` is defined, on the right another
0 commit comments