Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'docs/dev/lsp-extensions.md')
| -rw-r--r-- | docs/dev/lsp-extensions.md | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/docs/dev/lsp-extensions.md b/docs/dev/lsp-extensions.md index 3091bdcbf0..516d1caccc 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` |