diff options
| author | hkalbasi <hamidrezakalbasi@protonmail.com> | 2023-02-26 16:04:41 +0330 |
|---|---|---|
| committer | hkalbasi <hamidrezakalbasi@protonmail.com> | 2023-03-06 21:09:09 +0330 |
| commit | ac04bfd7a7223cc7077f6745c35f8b655ea13c73 (patch) | |
| tree | fb993abefdda7f7673b7b715199119335eea4e1e /docs/dev | |
| parent | a25710b0c01cc523b0f3732ca68321ac107a0ebe (diff) | |
| download | rust-ac04bfd7a7223cc7077f6745c35f8b655ea13c73.tar.gz rust-ac04bfd7a7223cc7077f6745c35f8b655ea13c73.zip | |
Add `View Mir` command and fix some bugs
Diffstat (limited to 'docs/dev')
| -rw-r--r-- | docs/dev/lsp-extensions.md | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/docs/dev/lsp-extensions.md b/docs/dev/lsp-extensions.md index c3623a5cc46..de142203208 100644 --- a/docs/dev/lsp-extensions.md +++ b/docs/dev/lsp-extensions.md @@ -1,5 +1,5 @@ <!--- -lsp_ext.rs hash: d87477896dfe41d4 +lsp_ext.rs hash: 37f31ae648632897 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: @@ -527,6 +527,17 @@ Primarily for debugging, but very useful for all people working on rust-analyzer Returns a textual representation of the HIR of the function containing the cursor. For debugging or when working on rust-analyzer itself. +## View Mir + +**Method:** `rust-analyzer/viewMir` + +**Request:** `TextDocumentPositionParams` + +**Response:** `string` + +Returns a textual representation of the MIR of the function containing the cursor. +For debugging or when working on rust-analyzer itself. + ## View File Text **Method:** `rust-analyzer/viewFileText` |
