diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-04-17 00:09:21 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-04-17 00:09:21 +0800 |
commit | 2779ac6f588f2b1799d3df4e50d299ead3b815c4 (patch) | |
tree | 794ef9c6c3ba5498fac1d8919de54dd675cb9113 /script | |
parent | 1fbf704447dc36ef4b4c591efd4f7021283bb967 (diff) | |
download | lua-language-server-2779ac6f588f2b1799d3df4e50d299ead3b815c4.zip |
pass tests
Diffstat (limited to 'script')
-rw-r--r-- | script/vm/manager.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/script/vm/manager.lua b/script/vm/manager.lua index 58255fca..b5c37c35 100644 --- a/script/vm/manager.lua +++ b/script/vm/manager.lua @@ -7,6 +7,12 @@ local localManager = require 'vm.local-manager' ---@class vm.state local m = {} +for uri in files.eachFile() do + local state = files.getState(uri) + if state then + globalManager.compileAst(state.ast) + end +end files.watch(function (ev, uri) if ev == 'update' then |