diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2018-12-29 10:59:45 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2018-12-29 10:59:45 +0800 |
commit | 27b27cc0e6ac2193c927c20928089d8f8ebf02f9 (patch) | |
tree | 2d58e5cc7f317ee1de584676780a2e45c257fe61 /server/src/core/document_symbol.lua | |
parent | 55f143578193ac434b18d77bbbdacc468ff340c7 (diff) | |
download | lua-language-server-27b27cc0e6ac2193c927c20928089d8f8ebf02f9.zip |
过滤掉隐藏变量吧
Diffstat (limited to 'server/src/core/document_symbol.lua')
-rw-r--r-- | server/src/core/document_symbol.lua | 3 |
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 { |