diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-11-02 14:43:30 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-11-02 14:43:30 +0800 |
commit | 07d37e7b5d4fd1841dbc3fdfb5b17759f2f79baf (patch) | |
tree | 8321269da4ade48dc229b03115b69035e5e5b5c5 /script/workspace | |
parent | 5e9e75b46fdacda1bb1479780af6a0132d7d17cb (diff) | |
download | lua-language-server-07d37e7b5d4fd1841dbc3fdfb5b17759f2f79baf.zip |
multi-compile use private channel
Diffstat (limited to 'script/workspace')
-rw-r--r-- | script/workspace/loading.lua | 9 |
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 |