Bump lsp-server

This commit is contained in:
Lukas Wirth 2024-09-06 09:40:22 +02:00
parent a0f1832355
commit 70ee4e5545
2 changed files with 7 additions and 7 deletions

12
Cargo.lock generated
View file

@ -997,12 +997,12 @@ checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24"
[[package]] [[package]]
name = "lsp-server" name = "lsp-server"
version = "0.7.6" version = "0.7.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "248f65b78f6db5d8e1b1604b4098a28b43d21a8eb1deeca22b1c421b276c7095"
dependencies = [ dependencies = [
"crossbeam-channel", "crossbeam-channel",
"ctrlc",
"log", "log",
"lsp-types",
"serde", "serde",
"serde_json", "serde_json",
] ]
@ -1010,11 +1010,11 @@ dependencies = [
[[package]] [[package]]
name = "lsp-server" name = "lsp-server"
version = "0.7.7" version = "0.7.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "550446e84739dcaf6d48a4a093973850669e13e8a34d8f8d64851041be267cd9"
dependencies = [ dependencies = [
"crossbeam-channel", "crossbeam-channel",
"ctrlc",
"log", "log",
"lsp-types",
"serde", "serde",
"serde_json", "serde_json",
] ]
@ -1652,7 +1652,7 @@ dependencies = [
"intern", "intern",
"itertools", "itertools",
"load-cargo", "load-cargo",
"lsp-server 0.7.6", "lsp-server 0.7.7 (registry+https://github.com/rust-lang/crates.io-index)",
"lsp-types", "lsp-types",
"memchr", "memchr",
"mimalloc", "mimalloc",

View file

@ -540,7 +540,7 @@ impl GlobalState {
} }
pub(crate) fn respond(&mut self, response: lsp_server::Response) { pub(crate) fn respond(&mut self, response: lsp_server::Response) {
if let Some((method, start)) = self.req_queue.incoming.complete(response.id.clone()) { if let Some((method, start)) = self.req_queue.incoming.complete(&response.id) {
if let Some(err) = &response.error { if let Some(err) = &response.error {
if err.message.starts_with("server panicked") { if err.message.starts_with("server panicked") {
self.poke_rust_analyzer_developer(format!("{}, check the log", err.message)) self.poke_rust_analyzer_developer(format!("{}, check the log", err.message))