Skip to content

Commit 2c638a4

Browse files
bors[bot]matklad
andauthored
Merge #9709
9709: fix: add capability for "open cargo.toml" lsp extension r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2 parents 9ca81ed + 7d6c414 commit 2c638a4

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

crates/rust-analyzer/src/caps.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ pub fn server_capabilities(config: &Config) -> ServerCapabilities {
114114
moniker_provider: None,
115115
experimental: Some(json!({
116116
"joinLines": true,
117+
"openCargoToml": true,
117118
"ssr": true,
118119
"onEnter": true,
119120
"parentModule": true,

docs/dev/lsp-extensions.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -619,6 +619,8 @@ Such actions on the client side are appended to a hover bottom as command links:
619619

620620
**Issue:** https://github.com/rust-analyzer/rust-analyzer/issues/6462
621621

622+
**Experimental Server Capability:** `{ "openCargoToml": boolean }`
623+
622624
This request is sent from client to server to open the current project's Cargo.toml
623625

624626
**Method:** `experimental/openCargoToml`

0 commit comments

Comments
 (0)