From 31b69e685d7ca5d10f050864fdc0144e7d1e0ce0 Mon Sep 17 00:00:00 2001 From: kjeremy Date: Mon, 11 Mar 2019 13:58:38 -0400 Subject: LSP: Support EnumMember and Field --- crates/ra_lsp_server/src/conv.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/ra_lsp_server/src/conv.rs b/crates/ra_lsp_server/src/conv.rs index 41f78e58d..74e91c236 100644 --- a/crates/ra_lsp_server/src/conv.rs +++ b/crates/ra_lsp_server/src/conv.rs @@ -39,9 +39,11 @@ impl Conv for SyntaxKind { SyntaxKind::FN_DEF => SymbolKind::Function, SyntaxKind::STRUCT_DEF => SymbolKind::Struct, SyntaxKind::ENUM_DEF => SymbolKind::Enum, + SyntaxKind::ENUM_VARIANT => SymbolKind::EnumMember, SyntaxKind::TRAIT_DEF => SymbolKind::Interface, SyntaxKind::MODULE => SymbolKind::Module, SyntaxKind::TYPE_ALIAS_DEF => SymbolKind::TypeParameter, + SyntaxKind::NAMED_FIELD_DEF => SymbolKind::Field, SyntaxKind::STATIC_DEF => SymbolKind::Constant, SyntaxKind::CONST_DEF => SymbolKind::Constant, SyntaxKind::IMPL_BLOCK => SymbolKind::Object, -- cgit v1.2.3