summaryrefslogtreecommitdiff
path: root/script/workspace
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-10-20 17:44:20 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-10-20 17:44:20 +0800
commit1c79bbc9d1a238e4cc900c506690e52f8e5f12f2 (patch)
tree50deb3b72cb604ed5c8e96e035270429361cb36c /script/workspace
parent310fb6033315245681b620a317f9f21a9897ee00 (diff)
downloadlua-language-server-1c79bbc9d1a238e4cc900c506690e52f8e5f12f2.zip
test multi core compile
Diffstat (limited to 'script/workspace')
-rw-r--r--script/workspace/loading.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/script/workspace/loading.lua b/script/workspace/loading.lua
index 9344949c..ff8626ed 100644
--- a/script/workspace/loading.lua
+++ b/script/workspace/loading.lua
@@ -99,7 +99,11 @@ function mt:loadFile(uri, libraryUri)
-- self._sets[#self._sets+1] = waker
--end)
files.setText(uri, content, false)
- files.getState(uri)
+ if COMPILECORES then
+ files.compileState(uri, true)
+ else
+ files.compileState(uri)
+ end
if not self._cache[uri] then
files.addRef(uri)
end