about summary refs log tree commit diff
path: root/docs/dev
diff options
context:
space:
mode:
authorJonas Schievink <jonas.schievink@ferrous-systems.com>2022-03-31 14:50:33 +0200
committerJonas Schievink <jonas.schievink@ferrous-systems.com>2022-03-31 14:50:33 +0200
commitec2d0233831cdd1d88a0d0be43534a014c3e4899 (patch)
tree045d7021543058b40ecbf3b9ccd40928f63bf7c2 /docs/dev
parent259182b50b131647975926e8c94aad4c47d33747 (diff)
downloadrust-ec2d0233831cdd1d88a0d0be43534a014c3e4899.tar.gz
rust-ec2d0233831cdd1d88a0d0be43534a014c3e4899.zip
Add "view file text" command to debug sync issues
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 3091bdcbf07..516d1caccc3 100644
--- a/docs/dev/lsp-extensions.md
+++ b/docs/dev/lsp-extensions.md
@@ -1,5 +1,5 @@
 <!---
-lsp_ext.rs hash: 854109e98d02a780
+lsp_ext.rs hash: a61de7db4504a4d1
 
 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:
@@ -494,6 +494,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 File Text
+
+**Method:** `rust-analyzer/viewFileText`
+
+**Request:** `TextDocumentIdentifier`
+
+**Response:** `string`
+
+Returns the text of a file as seen by the server.
+This is for debugging file sync problems.
+
 ## View ItemTree
 
 **Method:** `rust-analyzer/viewItemTree`