Skip to content

Commit 1fbf704

Browse files
committed
merge load and compile
1 parent 944b7d5 commit 1fbf704

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

script/workspace/loading.lua

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ function mt:loadFile(uri, libraryUri)
9595
return
9696
end
9797
log.debug(('Preload file at: %s , size = %.3f KB'):format(uri, #content / 1024.0))
98-
await.wait(function (waker)
99-
self._sets[#self._sets+1] = waker
100-
end)
98+
--await.wait(function (waker)
99+
-- self._sets[#self._sets+1] = waker
100+
--end)
101101
files.setText(uri, content, false)
102102
if not self._cache[uri] then
103103
files.addRef(uri)
@@ -129,9 +129,9 @@ function mt:loadFile(uri, libraryUri)
129129
return
130130
end
131131
log.debug(('Preload dll at: %s , size = %.3f KB'):format(uri, #content / 1024.0))
132-
await.wait(function (waker)
133-
self._sets[#self._sets+1] = waker
134-
end)
132+
--await.wait(function (waker)
133+
-- self._sets[#self._sets+1] = waker
134+
--end)
135135
files.saveDll(uri, content)
136136
if not self._cache[uri] then
137137
files.addRef(uri)

0 commit comments

Comments
 (0)