summaryrefslogtreecommitdiff
path: root/server/src/matcher
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/matcher')
-rw-r--r--server/src/matcher/vm.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/server/src/matcher/vm.lua b/server/src/matcher/vm.lua
index 2156b0e8..4f6b4952 100644
--- a/server/src/matcher/vm.lua
+++ b/server/src/matcher/vm.lua
@@ -549,6 +549,7 @@ function mt:tryRequireOne(strValue, mode)
end
-- 如果取不到VM(不编译),则做个标记,之后再取一次
local destVM = self.lsp:getVM(uri)
+ self.lsp:compileChain(self.uri, uri)
if destVM then
if mode == 'require' then
return self:getRequire(strValue, destVM)
@@ -557,8 +558,6 @@ function mt:tryRequireOne(strValue, mode)
elseif mode == 'dofile' then
return self:getRequire(strValue, destVM)
end
- else
- self.lsp:compileChain(self.uri, uri)
end
end
return nil