about summary refs log tree commit diff
path: root/docs/dev
diff options
context:
space:
mode:
authorJonas Schievink <jonasschievink@gmail.com>2021-05-22 00:03:36 +0200
committerJonas Schievink <jonasschievink@gmail.com>2021-05-22 00:03:36 +0200
commit3360053312af5063008d3d0e283c8a025ba7b10d (patch)
tree5806b863bd57cef5400bdb2ee03fe18bdbf42d7c /docs/dev
parent271ec6b990523c79f93468a5b0ab5e1aceab50f6 (diff)
downloadrust-3360053312af5063008d3d0e283c8a025ba7b10d.tar.gz
rust-3360053312af5063008d3d0e283c8a025ba7b10d.zip
Update lsp-extensions.md
Diffstat (limited to 'docs/dev')
-rw-r--r--docs/dev/lsp-extensions.md20
1 files changed, 18 insertions, 2 deletions
diff --git a/docs/dev/lsp-extensions.md b/docs/dev/lsp-extensions.md
index 3c4eacfeb57..fbe2ce1c938 100644
--- a/docs/dev/lsp-extensions.md
+++ b/docs/dev/lsp-extensions.md
@@ -1,5 +1,5 @@
 <!---
-lsp_ext.rs hash: 10a8988e6893e6b2
+lsp_ext.rs hash: 49f253e4a9307d4f
 
 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:
@@ -464,7 +464,7 @@ Clients are discouraged from but are allowed to use the `health` status to decid
 **Request:**
 
 ```typescript
-interface SyntaxTeeParams {
+interface SyntaxTreeParams {
     textDocument: TextDocumentIdentifier,
     range?: Range,
 }
@@ -486,6 +486,22 @@ 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 ItemTree
+
+**Method:** `rust-analyzer/viewItemTree`
+
+**Request:**
+
+```typescript
+interface ViewItemTreeParams {
+    textDocument: TextDocumentIdentifier,
+}
+```
+
+**Response:** `string`
+
+Returns a textual representation of the `ItemTree` of the currently open file, for debugging.
+
 ## View Crate Graph
 
 **Method:** `rust-analyzer/viewCrateGraph`