Skip to content

Commit a1ca1e7

Browse files
bors[bot]dtolnay
andauthored
Merge #4739
4739: Declare required lsp-server dependency of rust-analyzer crate r=jonas-schievink a=dtolnay My codebase already depended on lsp-server and introducing a dependency on rust-analyzer failed at first because it assumes some functions that were first present in lsp-server 0.3.2. Without this change: ```console error[E0599]: no method named `initialize_start` found for struct `lsp_server::Connection` in the current scope --> crates/rust-analyzer/./src/bin/main.rs:83:57 | 83 | let (initialize_id, initialize_params) = connection.initialize_start()?; | ^^^^^^^^^^^^^^^^ method not found in `lsp_server::Connection` error[E0599]: no method named `initialize_finish` found for struct `lsp_server::Connection` in the current scope --> crates/rust-analyzer/./src/bin/main.rs:99:16 | 99 | connection.initialize_finish(initialize_id, initialize_result)?; | ^^^^^^^^^^^^^^^^^ method not found in `lsp_server::Connection` ``` Co-authored-by: David Tolnay <[email protected]>
2 parents 06638ff + 19b27f2 commit a1ca1e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/rust-analyzer/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ threadpool = "1.7.1"
3232

3333
stdx = { path = "../stdx" }
3434

35-
lsp-server = "0.3.1"
35+
lsp-server = "0.3.2"
3636
ra_flycheck = { path = "../ra_flycheck" }
3737
ra_ide = { path = "../ra_ide" }
3838
ra_prof = { path = "../ra_prof" }

0 commit comments

Comments
 (0)