diff options
author | sumneko <sumneko@hotmail.com> | 2022-01-23 17:48:25 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2022-01-23 17:48:25 +0800 |
commit | bb4a7a3c64eed7d5269ab5eef830bdf211839f11 (patch) | |
tree | adb70b9377fa06e04387d7bba26e0b5aec49b5af /script/workspace/workspace.lua | |
parent | b5b89b42d2f02d15b1bf41241faee934ec07640d (diff) | |
download | lua-language-server-bb4a7a3c64eed7d5269ab5eef830bdf211839f11.zip |
fix
Diffstat (limited to 'script/workspace/workspace.lua')
-rw-r--r-- | script/workspace/workspace.lua | 4 |
1 files changed, 2 insertions, 2 deletions
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 |