diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-07-21 17:35:28 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-07-21 17:35:28 +0800 |
commit | d9143e2904b02b621f646268442a2a18307783b7 (patch) | |
tree | 444724ad37fb994d440b1d066d5df453b200bc7b /script/method | |
parent | 675ba56e9d39711cf0653ccfa48423e4523baebe (diff) | |
download | lua-language-server-d9143e2904b02b621f646268442a2a18307783b7.zip |
工作区符号支持 local
Diffstat (limited to 'script/method')
-rw-r--r-- | script/method/workspace/symbol.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/script/method/workspace/symbol.lua b/script/method/workspace/symbol.lua index dc901ec2..71ae658a 100644 --- a/script/method/workspace/symbol.lua +++ b/script/method/workspace/symbol.lua @@ -47,7 +47,8 @@ local function convertRange(lines, range) end local function collect(results, source, uri, lines) - if source:action() ~= 'set' then + if source:action() ~= 'set' + and source:action() ~= 'local' then return end local kind = SymbolKind.Variable |