diff options
author | sumneko <sumneko@hotmail.com> | 2019-04-04 10:54:28 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2019-04-04 10:54:28 +0800 |
commit | 574c02a41b7fb8acf60ffc158a285987bd0c1e28 (patch) | |
tree | a04ed45b2636bb82fe9c0b703b691a8aa8ed2d35 /server/src/service.lua | |
parent | e327c737c6f1568167ada2562b4b38d82e59db35 (diff) | |
download | lua-language-server-574c02a41b7fb8acf60ffc158a285987bd0c1e28.zip |
修正报错
Diffstat (limited to 'server/src/service.lua')
-rw-r--r-- | server/src/service.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/server/src/service.lua b/server/src/service.lua index 6db71442..1cb4b19e 100644 --- a/server/src/service.lua +++ b/server/src/service.lua @@ -659,7 +659,9 @@ function mt:onUpdateConfig(updated) end if not table.equal(oldConfig.workspace, newConfig.workspace) then self:clearAllFiles() - self.workspace:scanFiles() + if self.workspace then + self.workspace:scanFiles() + end end end |