diff --git a/Cargo.lock b/Cargo.lock index 85ea4f178f..5d50a766fe 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -655,9 +655,9 @@ dependencies = [ [[package]] name = "lsp-types" -version = "0.74.0" +version = "0.74.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "820f746e5716ab9a2d664794636188bd003023b72e55404ee27105dc22869922" +checksum = "57c0e6a2b8837d27b29deb3f3e6dc1c6d2f57947677f9be1024e482ec5b59525" dependencies = [ "base64", "bitflags", @@ -706,9 +706,9 @@ dependencies = [ [[package]] name = "mio" -version = "0.6.21" +version = "0.6.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "302dec22bcf6bae6dfb69c647187f4b4d0fb6f535521f7bc022430ce8e12008f" +checksum = "fce347092656428bc8eaf6201042cb551b8d67855af7374542a92a0fbfcac430" dependencies = [ "cfg-if", "fuchsia-zircon", @@ -749,9 +749,9 @@ dependencies = [ [[package]] name = "net2" -version = "0.2.33" +version = "0.2.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "42550d9fb7b6684a6d404d9fa7250c2eb2646df731d1c06afc06dcee9e1bcf88" +checksum = "2ba7c918ac76704fb42afcbbb43891e72731f3dcca3bef2a19786297baf14af7" dependencies = [ "cfg-if", "libc", diff --git a/crates/rust-analyzer/src/caps.rs b/crates/rust-analyzer/src/caps.rs index c0d3209262..44222d8bd8 100644 --- a/crates/rust-analyzer/src/caps.rs +++ b/crates/rust-analyzer/src/caps.rs @@ -43,7 +43,7 @@ pub fn server_capabilities() -> ServerCapabilities { code_action_provider: Some(CodeActionProviderCapability::Options(CodeActionOptions { // Advertise support for all built-in CodeActionKinds code_action_kinds: Some(vec![ - String::new(), + lsp_types::code_action_kind::EMPTY.to_string(), lsp_types::code_action_kind::QUICKFIX.to_string(), lsp_types::code_action_kind::REFACTOR.to_string(), lsp_types::code_action_kind::REFACTOR_EXTRACT.to_string(),