summaryrefslogtreecommitdiff
path: root/server-beta/src/workspace
diff options
context:
space:
mode:
Diffstat (limited to 'server-beta/src/workspace')
-rw-r--r--server-beta/src/workspace/workspace.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/server-beta/src/workspace/workspace.lua b/server-beta/src/workspace/workspace.lua
index 8508e5c5..1684f224 100644
--- a/server-beta/src/workspace/workspace.lua
+++ b/server-beta/src/workspace/workspace.lua
@@ -13,6 +13,9 @@ end
--- 预读工作区内所有文件(异步)
function m.preload()
+ if not m.uri then
+ return
+ end
log.info('Preload start.')
local function scan(dir, callback)
local result = pub.task('listDirectory', dir)