diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-01-21 16:00:05 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-01-21 16:00:05 +0800 |
commit | e9c7d91660f032190eb6d2365f2bad8cf9500ba9 (patch) | |
tree | c6d0420d2deadca2bd6133a819bfa2d8afe320a3 /server/test/crossfile/definition.lua | |
parent | feb215f22fa60904506bffdf63e96f90739a89d3 (diff) | |
download | lua-language-server-e9c7d91660f032190eb6d2365f2bad8cf9500ba9.zip |
使用协程启动语法树编译
Diffstat (limited to 'server/test/crossfile/definition.lua')
-rw-r--r-- | server/test/crossfile/definition.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/server/test/crossfile/definition.lua b/server/test/crossfile/definition.lua index dda1bf9a..a0df15a4 100644 --- a/server/test/crossfile/definition.lua +++ b/server/test/crossfile/definition.lua @@ -42,8 +42,9 @@ function TEST(data) ws:addFile(sourceUri) lsp:saveText(targetUri, 1, targetScript) ws:addFile(targetUri) - lsp:compileAll() - lsp:compileAll() + while lsp._needCompile[1] do + lsp:compileVM(lsp._needCompile[1]) + end local sourceVM = lsp:getVM(sourceUri) assert(sourceVM) |