summaryrefslogtreecommitdiff
path: root/script/workspace
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-02-21 16:34:37 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-02-21 16:34:37 +0800
commitfe2a2fdccc5d8e0dcafb76d9516e228b40a09bda (patch)
treea256830540f383fc22aa6a31e7bb9e39f896a4c5 /script/workspace
parenta2c126984c583497c52eda0d311abac0d352fa12 (diff)
downloadlua-language-server-fe2a2fdccc5d8e0dcafb76d9516e228b40a09bda.zip
fix runtime error
Diffstat (limited to 'script/workspace')
-rw-r--r--script/workspace/workspace.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/script/workspace/workspace.lua b/script/workspace/workspace.lua
index cb8bd68b..80df7d9c 100644
--- a/script/workspace/workspace.lua
+++ b/script/workspace/workspace.lua
@@ -234,6 +234,7 @@ end
---@async
function m.awaitLoadFile(uri)
+ m.awaitReady(uri)
local scp = scope.getScope(uri)
local ld <close> = loading.create(scp)
local native = m.getNativeMatcher(scp)