about summary refs log tree commit diff
path: root/src/tools/rust-analyzer/docs/dev
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-03-13 16:54:43 +0000
committerbors <bors@rust-lang.org>2023-03-13 16:54:43 +0000
commit8efa635b40ce6569e12f4988b7a9bcb7f3f0ed0c (patch)
tree2d967d344f2eb972a900208198afb65ef5a1b70f /src/tools/rust-analyzer/docs/dev
parentcf8d98b227fd3c7e50aa5a9453141c5edbf5df38 (diff)
parente8629011ae742d74c1216c6d69efb02df02c64c6 (diff)
downloadrust-8efa635b40ce6569e12f4988b7a9bcb7f3f0ed0c.tar.gz
rust-8efa635b40ce6569e12f4988b7a9bcb7f3f0ed0c.zip
Auto merge of #109069 - lnicola:rust-analyzer-2023-03-13, r=lnicola
:arrow_up: `rust-analyzer`

r? `@ghost`
Diffstat (limited to 'src/tools/rust-analyzer/docs/dev')
-rw-r--r--src/tools/rust-analyzer/docs/dev/lsp-extensions.md13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/tools/rust-analyzer/docs/dev/lsp-extensions.md b/src/tools/rust-analyzer/docs/dev/lsp-extensions.md
index c3623a5cc46..de142203208 100644
--- a/src/tools/rust-analyzer/docs/dev/lsp-extensions.md
+++ b/src/tools/rust-analyzer/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`