summaryrefslogtreecommitdiff
path: root/script/workspace
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-11-02 14:43:30 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-11-02 14:43:30 +0800
commit07d37e7b5d4fd1841dbc3fdfb5b17759f2f79baf (patch)
tree8321269da4ade48dc229b03115b69035e5e5b5c5 /script/workspace
parent5e9e75b46fdacda1bb1479780af6a0132d7d17cb (diff)
downloadlua-language-server-07d37e7b5d4fd1841dbc3fdfb5b17759f2f79baf.zip
multi-compile use private channel
Diffstat (limited to 'script/workspace')
-rw-r--r--script/workspace/loading.lua9
1 files changed, 2 insertions, 7 deletions
diff --git a/script/workspace/loading.lua b/script/workspace/loading.lua
index 43909357..f28665cd 100644
--- a/script/workspace/loading.lua
+++ b/script/workspace/loading.lua
@@ -88,12 +88,7 @@ function mt:loadFile(uri, libraryUri)
self._cache[uri] = true
log.debug(('Skip loaded file: %s'):format(uri))
else
- local content
- if COMPILECORES then
- content = util.loadFile(furi.decode(uri))
- else
- content = pub.awaitTask('loadFile', furi.decode(uri))
- end
+ local content = pub.awaitTask('loadFile', furi.decode(uri))
self.read = self.read + 1
self:update()
if not content then
@@ -105,7 +100,7 @@ function mt:loadFile(uri, libraryUri)
--end)
files.setText(uri, content, false)
if COMPILECORES then
- files.compileState(uri, true)
+ files.compileStateAsync(uri, function (state) end)
else
files.compileState(uri)
end