about summary refs log tree commit diff
path: root/docs/dev
diff options
context:
space:
mode:
authorLaurențiu Nicola <lnicola@dend.ro>2023-03-13 10:21:53 +0200
committerLaurențiu Nicola <lnicola@dend.ro>2023-03-13 10:21:53 +0200
commitbdbd2a59b02afca1eb73255d1bac452e9063e26c (patch)
treedb13312956a941da1b3470ec9b8b4011cb113fad /docs/dev
parent15b867b5db35d67e0f1026b55f22ba6b25ad6dcb (diff)
parentf1e51afa450ecf352c1f01fc5a5b6d10792e3779 (diff)
downloadrust-bdbd2a59b02afca1eb73255d1bac452e9063e26c.tar.gz
rust-bdbd2a59b02afca1eb73255d1bac452e9063e26c.zip
Merge branch 'master' into sync-from-rust
Diffstat (limited to 'docs/dev')
-rw-r--r--docs/dev/lsp-extensions.md13
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`