summaryrefslogtreecommitdiff
path: root/server/src/core/document_symbol.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/core/document_symbol.lua')
-rw-r--r--server/src/core/document_symbol.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/src/core/document_symbol.lua b/server/src/core/document_symbol.lua
index 61d58772..5b69de2e 100644
--- a/server/src/core/document_symbol.lua
+++ b/server/src/core/document_symbol.lua
@@ -83,6 +83,9 @@ local function buildLocal(vm, loc)
if loc.value and loc.value.type == 'function' then
return nil
end
+ if loc.hide then
+ return nil
+ end
local range = { loc.source.start, loc.source.finish }
local hvr = hover(loc, loc.source)
return {