mirror of
https://github.com/godotengine/godot
synced 2024-09-05 22:42:16 +00: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 a new issue