From 2779ac6f588f2b1799d3df4e50d299ead3b815c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Sun, 17 Apr 2022 00:09:21 +0800 Subject: pass tests --- script/vm/manager.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'script/vm/manager.lua') 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 -- cgit v1.2.3