mirror of
https://github.com/godotengine/godot.git
synced 2024-12-09 10:09:20 +08:00
GDScript: Fix LSP getting wrong union value on unnamed enums
This commit is contained in:
parent
d06ce2f11e
commit
fda6f3b600
@ -237,7 +237,7 @@ void ExtendGDScriptParser::parse_class_symbol(const GDScriptParser::ClassNode *p
|
||||
case ClassNode::Member::ENUM_VALUE: {
|
||||
lsp::DocumentSymbol symbol;
|
||||
|
||||
symbol.name = m.constant->identifier->name;
|
||||
symbol.name = m.enum_value.identifier->name;
|
||||
symbol.kind = lsp::SymbolKind::EnumMember;
|
||||
symbol.deprecated = false;
|
||||
symbol.range.start.line = LINE_NUMBER_TO_INDEX(m.enum_value.line);
|
||||
|
Loading…
Reference in New Issue
Block a user