From bb4a7a3c64eed7d5269ab5eef830bdf211839f11 Mon Sep 17 00:00:00 2001 From: sumneko Date: Sun, 23 Jan 2022 17:48:25 +0800 Subject: fix --- script/workspace/workspace.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'script/workspace/workspace.lua') diff --git a/script/workspace/workspace.lua b/script/workspace/workspace.lua index 8a5e2b52..f9e0e2c5 100644 --- a/script/workspace/workspace.lua +++ b/script/workspace/workspace.lua @@ -229,7 +229,7 @@ function m.awaitLoadFile(uri) ---@async native:scan(furi.decode(uri), function (path) files.remove(furi.encode(path)) - ld:loadFile(furi.encode(path), nil) + ld:loadFile(furi.encode(path)) end) ld:loadAll() end @@ -285,7 +285,7 @@ function m.awaitPreload(scp) scp:addLink(libMatcher.uri) ---@async libMatcher.matcher:scan(furi.decode(libMatcher.uri), function (path) - ld:loadFile(furi.encode(path)) + ld:loadFile(furi.encode(path), libMatcher.uri) end) watchers[#watchers+1] = fw.watch(furi.decode(libMatcher.uri)) end -- cgit v1.2.3