diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-03-12 10:16:04 +0000 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-03-12 10:16:04 +0000 |
commit | 65a9066115f3d2d150b4fcb46c1db65b2ac91832 (patch) | |
tree | 9b40bc514ee974f88f1357e963063da9fc311a1a /crates | |
parent | d80df85d11486041a41e254a764b216de3b1549e (diff) | |
parent | 31b69e685d7ca5d10f050864fdc0144e7d1e0ce0 (diff) |
Merge #958
958: LSP: Support EnumMember and Field r=matklad a=kjeremy
Co-authored-by: kjeremy <[email protected]>
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ra_lsp_server/src/conv.rs | 2 |
1 files changed, 2 insertions, 0 deletions
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 { | |||
39 | SyntaxKind::FN_DEF => SymbolKind::Function, | 39 | SyntaxKind::FN_DEF => SymbolKind::Function, |
40 | SyntaxKind::STRUCT_DEF => SymbolKind::Struct, | 40 | SyntaxKind::STRUCT_DEF => SymbolKind::Struct, |
41 | SyntaxKind::ENUM_DEF => SymbolKind::Enum, | 41 | SyntaxKind::ENUM_DEF => SymbolKind::Enum, |
42 | SyntaxKind::ENUM_VARIANT => SymbolKind::EnumMember, | ||
42 | SyntaxKind::TRAIT_DEF => SymbolKind::Interface, | 43 | SyntaxKind::TRAIT_DEF => SymbolKind::Interface, |
43 | SyntaxKind::MODULE => SymbolKind::Module, | 44 | SyntaxKind::MODULE => SymbolKind::Module, |
44 | SyntaxKind::TYPE_ALIAS_DEF => SymbolKind::TypeParameter, | 45 | SyntaxKind::TYPE_ALIAS_DEF => SymbolKind::TypeParameter, |
46 | SyntaxKind::NAMED_FIELD_DEF => SymbolKind::Field, | ||
45 | SyntaxKind::STATIC_DEF => SymbolKind::Constant, | 47 | SyntaxKind::STATIC_DEF => SymbolKind::Constant, |
46 | SyntaxKind::CONST_DEF => SymbolKind::Constant, | 48 | SyntaxKind::CONST_DEF => SymbolKind::Constant, |
47 | SyntaxKind::IMPL_BLOCK => SymbolKind::Object, | 49 | SyntaxKind::IMPL_BLOCK => SymbolKind::Object, |