summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-04-17 00:09:21 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-04-17 00:09:21 +0800
commit2779ac6f588f2b1799d3df4e50d299ead3b815c4 (patch)
tree794ef9c6c3ba5498fac1d8919de54dd675cb9113 /script
parent1fbf704447dc36ef4b4c591efd4f7021283bb967 (diff)
downloadlua-language-server-2779ac6f588f2b1799d3df4e50d299ead3b815c4.zip
pass tests
Diffstat (limited to 'script')
-rw-r--r--script/vm/manager.lua6
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