]> git.lizzy.rs Git - rust.git/commitdiff
Document viewCrateGraph request
authorJonas Schievink <jonasschievink@gmail.com>
Tue, 11 May 2021 14:45:51 +0000 (16:45 +0200)
committerJonas Schievink <jonasschievink@gmail.com>
Tue, 11 May 2021 14:45:51 +0000 (16:45 +0200)
docs/dev/lsp-extensions.md

index f0f981802ef241fa577cfbb2c89901b1241129f4..8fcd72d5d5dfa49084b7ca3f8d4d6fd254fb9a40 100644 (file)
@@ -1,5 +1,5 @@
 <!---
-lsp_ext.rs hash: 28a9d5a24b7ca396
+lsp_ext.rs hash: 6e57fc1b345b00e9
 
 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:
@@ -486,6 +486,16 @@ 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 Crate Graph
+
+**Method:** `rust-analyzer/viewCrateGraph`
+
+**Request:** `null`
+
+**Response:** `string`
+
+Renders rust-analyzer's crate graph as an SVG image.
+
 ## Expand Macro
 
 **Method:** `rust-analyzer/expandMacro`