summaryrefslogtreecommitdiff
path: root/server/src/core/document_symbol.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-03-13 18:03:24 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-03-13 18:03:24 +0800
commit2614c2f6e6a53e4142fe57a184fd7bead11a5f4f (patch)
tree17bd6669b19ac260bed90a9dfea241e4117074ff /server/src/core/document_symbol.lua
parent628a272b7babbeab995cf582ff4337b897ac09e6 (diff)
downloadlua-language-server-2614c2f6e6a53e4142fe57a184fd7bead11a5f4f.zip
解除所有的source循环引用
Diffstat (limited to 'server/src/core/document_symbol.lua')
-rw-r--r--server/src/core/document_symbol.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/core/document_symbol.lua b/server/src/core/document_symbol.lua
index 8225fdb9..7411b079 100644
--- a/server/src/core/document_symbol.lua
+++ b/server/src/core/document_symbol.lua
@@ -64,7 +64,7 @@ local function buildLocal(vm, source, callback)
else
kind = SymbolKind.Variable
end
- local valueSource = value.source
+ local valueSource = value:getSource()
if valueSource.start == 0 or value.uri ~= vm.uri then
valueSource = source
end
@@ -118,7 +118,7 @@ local function buildSet(vm, source, callback)
else
kind = SymbolKind.Property
end
- local valueSource = value.source
+ local valueSource = value:getSource()
if valueSource.start == 0 or value.uri ~= vm.uri then
valueSource = source
end