about summary refs log tree commit diff
path: root/docs/dev
diff options
context:
space:
mode:
authorAnatol Liu <axlui@anatols-mbp.lan>2020-11-12 17:48:07 -0800
committerAnatol Liu <axlui@anatols-mbp.lan>2020-11-12 17:48:07 -0800
commitb1b7727e046b4b25dcca034ee767a7fc3238409d (patch)
treec1942b7af1e73b139d2c62d1d81e8d6749dc8cd2 /docs/dev
parent111cc34c8f181315f4dcfa85c616d54d47eff0b9 (diff)
downloadrust-b1b7727e046b4b25dcca034ee767a7fc3238409d.tar.gz
rust-b1b7727e046b4b25dcca034ee767a7fc3238409d.zip
add open Cargo.toml action
Diffstat (limited to 'docs/dev')
-rw-r--r--docs/dev/lsp-extensions.md29
1 files changed, 27 insertions, 2 deletions
diff --git a/docs/dev/lsp-extensions.md b/docs/dev/lsp-extensions.md
index 77d4e0ec996..db9727bee42 100644
--- a/docs/dev/lsp-extensions.md
+++ b/docs/dev/lsp-extensions.md
@@ -1,8 +1,8 @@
 <!---
-lsp_ext.rs hash: 4f86fb54e4b2870e
+lsp_ext.rs hash: 9d5daed5b25dc4f6
 
 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:
+need to adjust this doc as well and ping this  issue:
 
   https://github.com/rust-analyzer/rust-analyzer/issues/4604
 
@@ -537,3 +537,28 @@ Such actions on the client side are appended to a hover bottom as command links:
   +-----------------------------+
   ...
 ```
+
+## Open Cargo.toml
+
+**Issue:** https://github.com/rust-analyzer/rust-analyzer/issues/6462
+
+This request is sent from client to server to open the current project's Cargo.toml
+
+**Method:** `experimental/openCargoToml`
+
+**Request:** `OpenCargoTomlParams`
+
+**Response:** `Location | null`
+
+
+### Example
+
+```rust
+// Cargo.toml
+[package]
+// src/main.rs
+
+/* cursor here*/
+```
+
+`experimental/openCargoToml` returns a single `Link` to the start of the `[package]` keyword.