diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-04-16 23:38:50 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-04-16 23:38:50 +0800 |
commit | 1fbf704447dc36ef4b4c591efd4f7021283bb967 (patch) | |
tree | e7b1d3f2e7b664bc95d3b07ed2243fcd2ecd4b5d /script/workspace | |
parent | 944b7d59f9dbb8f7f41083478018f3e3ae255713 (diff) | |
download | lua-language-server-1fbf704447dc36ef4b4c591efd4f7021283bb967.zip |
merge load and compile
Diffstat (limited to 'script/workspace')
-rw-r--r-- | script/workspace/loading.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/script/workspace/loading.lua b/script/workspace/loading.lua index 83418776..f40c08c6 100644 --- a/script/workspace/loading.lua +++ b/script/workspace/loading.lua @@ -95,9 +95,9 @@ function mt:loadFile(uri, libraryUri) return end log.debug(('Preload file at: %s , size = %.3f KB'):format(uri, #content / 1024.0)) - await.wait(function (waker) - self._sets[#self._sets+1] = waker - end) + --await.wait(function (waker) + -- self._sets[#self._sets+1] = waker + --end) files.setText(uri, content, false) if not self._cache[uri] then files.addRef(uri) @@ -129,9 +129,9 @@ function mt:loadFile(uri, libraryUri) return end log.debug(('Preload dll at: %s , size = %.3f KB'):format(uri, #content / 1024.0)) - await.wait(function (waker) - self._sets[#self._sets+1] = waker - end) + --await.wait(function (waker) + -- self._sets[#self._sets+1] = waker + --end) files.saveDll(uri, content) if not self._cache[uri] then files.addRef(uri) |