diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-03-06 15:21:07 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-03-06 15:21:07 +0800 |
commit | da9766054cad4b47f5bc1534f1c9a13a922e17bc (patch) | |
tree | 7e773ea59e1388d195274e6fdde3ff7ad4963c7c /server/test/completion/init.lua | |
parent | a6807742cc7128b6eab4a078feac11af4039e1f9 (diff) | |
download | lua-language-server-da9766054cad4b47f5bc1534f1c9a13a922e17bc.zip |
更新自动完成的支持
Diffstat (limited to 'server/test/completion/init.lua')
-rw-r--r-- | server/test/completion/init.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/test/completion/init.lua b/server/test/completion/init.lua index c8089c50..3e7f9792 100644 --- a/server/test/completion/init.lua +++ b/server/test/completion/init.lua @@ -1,5 +1,6 @@ local core = require 'core' local parser = require 'parser' +local buildVM = require 'vm' local CompletionItemKind = { Text = 1, @@ -89,7 +90,7 @@ function TEST(script) local pos = script:find('@', 1, true) local new_script = script:gsub('@', ' ') local ast = parser:ast(new_script) - local vm = core.vm(ast) + local vm = buildVM(ast) assert(vm) local word = findWord(pos, new_script) local startPos = findStartPos(pos, new_script) or pos |