diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-10-20 17:44:20 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-10-20 17:44:20 +0800 |
commit | 1c79bbc9d1a238e4cc900c506690e52f8e5f12f2 (patch) | |
tree | 50deb3b72cb604ed5c8e96e035270429361cb36c /script/workspace | |
parent | 310fb6033315245681b620a317f9f21a9897ee00 (diff) | |
download | lua-language-server-1c79bbc9d1a238e4cc900c506690e52f8e5f12f2.zip |
test multi core compile
Diffstat (limited to 'script/workspace')
-rw-r--r-- | script/workspace/loading.lua | 6 |
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 |