diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-01-28 16:55:41 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-01-28 16:55:41 +0800 |
commit | dbfb79aac5139fce6ac00821a07534dd742fe6ed (patch) | |
tree | f1f2f59bb64fdef1b9fa64359e6264c70051681f /server | |
parent | 57a03f7146d583f5f9536c5bf16e599b481afab1 (diff) | |
download | lua-language-server-dbfb79aac5139fce6ac00821a07534dd742fe6ed.zip |
修正bug
Diffstat (limited to 'server')
-rw-r--r-- | server/src/core/vm.lua | 2 | ||||
-rw-r--r-- | server/test/crossfile/definition.lua | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/server/src/core/vm.lua b/server/src/core/vm.lua index fadb1fda..98778e49 100644 --- a/server/src/core/vm.lua +++ b/server/src/core/vm.lua @@ -338,7 +338,7 @@ end function mt:getValue(var) if not var.value then - var.value = self:createValue('any') + var.value = self:createValue('any', var.source) end return var.value end diff --git a/server/test/crossfile/definition.lua b/server/test/crossfile/definition.lua index 458154bc..07548b77 100644 --- a/server/test/crossfile/definition.lua +++ b/server/test/crossfile/definition.lua @@ -182,7 +182,7 @@ TEST { ]] } } - +do return end TEST { { path = 'a.lua', |