summaryrefslogtreecommitdiff
path: root/server/src/core/document_symbol.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-03-08 15:08:00 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-03-08 15:08:00 +0800
commit0af858e47af3cfc71bc3294f849108b5c00d0b11 (patch)
tree39d56fee462f6ac221096788968550f73813edc8 /server/src/core/document_symbol.lua
parentbffb7b50e3c7cea0a0a2e08e3efee8acc83eb7bf (diff)
downloadlua-language-server-0af858e47af3cfc71bc3294f849108b5c00d0b11.zip
修正一些bug
Diffstat (limited to 'server/src/core/document_symbol.lua')
-rw-r--r--server/src/core/document_symbol.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/core/document_symbol.lua b/server/src/core/document_symbol.lua
index e4b3c3b8..47389ec2 100644
--- a/server/src/core/document_symbol.lua
+++ b/server/src/core/document_symbol.lua
@@ -84,7 +84,7 @@ local function buildSet(source, callback)
return
end
local kind
- if value:getType() == 'function' then
+ if value:getFunction() then
local func = value:getFunction()
if func:getObject() then
kind = SymbolKind.Field