diff --git a/Cargo.toml b/Cargo.toml index c583b7d5961..847455eae00 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -26,9 +26,9 @@ log = "0.4" num_cpus = "1" racer = "2.1.4" rayon = "1" -rls-analysis = "0.14" +rls-analysis = "0.16" rls-blacklist = "0.1.2" -rls-data = { version = "0.16", features = ["serialize-serde"] } +rls-data = { version = "0.18", features = ["serialize-serde"] } rls-rustc = "0.5.0" rls-span = { version = "0.4", features = ["serialize-serde"] } rls-vfs = "0.4.6" diff --git a/src/lsp_data.rs b/src/lsp_data.rs index ecd7df1d16d..b6424d9cf09 100644 --- a/src/lsp_data.rs +++ b/src/lsp_data.rs @@ -185,10 +185,10 @@ pub mod ls_util { pub fn source_kind_from_def_kind(k: DefKind) -> SymbolKind { match k { DefKind::Enum | DefKind::Union => SymbolKind::Enum, - DefKind::Static | DefKind::Const => SymbolKind::Constant, + DefKind::Static | DefKind::Const | DefKind::ForeignStatic => SymbolKind::Constant, DefKind::Tuple => SymbolKind::Array, DefKind::Struct => SymbolKind::Class, - DefKind::Function | DefKind::Macro => SymbolKind::Function, + DefKind::Function | DefKind::Macro | DefKind::ForeignFunction => SymbolKind::Function, DefKind::Method => SymbolKind::Method, DefKind::Mod => SymbolKind::Module, DefKind::Trait | DefKind::Type | DefKind::ExternType => SymbolKind::Interface,