summaryrefslogtreecommitdiff
path: root/server/src/vm/vm.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-03-27 17:27:29 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-03-27 17:27:29 +0800
commit9f60f0982ed46448714044a394f3f1143563c581 (patch)
treec255d9f9cc569fe14d2361cb0159e10b92659554 /server/src/vm/vm.lua
parent0583a7dd28bb21012ac8334b5b2479a378263b6f (diff)
downloadlua-language-server-9f60f0982ed46448714044a394f3f1143563c581.zip
#的自动完成会检查场合
Diffstat (limited to 'server/src/vm/vm.lua')
-rw-r--r--server/src/vm/vm.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/src/vm/vm.lua b/server/src/vm/vm.lua
index 77f428ae..332f4a69 100644
--- a/server/src/vm/vm.lua
+++ b/server/src/vm/vm.lua
@@ -974,6 +974,7 @@ function mt:doAction(action)
elseif tp == 'simple' then
-- call
self:getSimple(action)
+ action:set('as action', true)
elseif tp == 'if' then
self:doIf(action)
elseif tp == 'loop' then
@@ -990,6 +991,7 @@ function mt:doAction(action)
self:doLocalFunction(action)
else
self:getExp(action)
+ action:set('as action', true)
end
end