summaryrefslogtreecommitdiff
path: root/server-beta/src/workspace/workspace.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-09-24 12:48:20 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-09-24 12:48:20 +0800
commitfd94e26e163e40ca0d932b84abc056522e5a049d (patch)
tree6f7da69de659d1eec87d2b9ab172dbb1b6be267a /server-beta/src/workspace/workspace.lua
parent897ba631156367453afb43bd3223821990ae6f2e (diff)
downloadlua-language-server-fd94e26e163e40ca0d932b84abc056522e5a049d.zip
加载配置
Diffstat (limited to 'server-beta/src/workspace/workspace.lua')
-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)