summaryrefslogtreecommitdiff
path: root/script/workspace
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-04-16 23:38:50 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-04-16 23:38:50 +0800
commit1fbf704447dc36ef4b4c591efd4f7021283bb967 (patch)
treee7b1d3f2e7b664bc95d3b07ed2243fcd2ecd4b5d /script/workspace
parent944b7d59f9dbb8f7f41083478018f3e3ae255713 (diff)
downloadlua-language-server-1fbf704447dc36ef4b4c591efd4f7021283bb967.zip
merge load and compile
Diffstat (limited to 'script/workspace')
-rw-r--r--script/workspace/loading.lua12
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)