mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-03 04:04:06 +00:00
LSP: Support EnumMember and Field
This commit is contained in:
parent
f96df105ea
commit
31b69e685d
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user