summaryrefslogtreecommitdiff
path: root/server/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/core')
-rw-r--r--server/src/core/document_symbol.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/server/src/core/document_symbol.lua b/server/src/core/document_symbol.lua
index e9d025db..13ee56e9 100644
--- a/server/src/core/document_symbol.lua
+++ b/server/src/core/document_symbol.lua
@@ -144,11 +144,11 @@ local function packChild(symbols, finish, kind)
end
symbols[#symbols] = nil
symbol.children = packChild(symbols, symbol.range[2], symbol.kind)
- if not t then
- t = {}
- end
- if symbol.kind == SymbolKind.Class and kind ~= SymbolKind.Variable then
+ if symbol.kind == SymbolKind.Class and kind == SymbolKind.Function then
else
+ if not t then
+ t = {}
+ end
t[#t+1] = symbol
end
end