diff options
Diffstat (limited to 'script/vm/manager.lua')
-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 |