diff --git a/lib/ruby_lsp/requests/support/common.rb b/lib/ruby_lsp/requests/support/common.rb index 61f1824cd..741bcdb95 100644 --- a/lib/ruby_lsp/requests/support/common.rb +++ b/lib/ruby_lsp/requests/support/common.rb @@ -155,6 +155,10 @@ def kind_for_entry(entry) Constant::SymbolKind::PROPERTY when RubyIndexer::Entry::InstanceVariable Constant::SymbolKind::FIELD + when RubyIndexer::Entry::GlobalVariable + Constant::SymbolKind::VARIABLE + else + Constant::SymbolKind::NULL end end end