From 9fe54198a9a435b70e41dac904d4353b67806ac8 Mon Sep 17 00:00:00 2001 From: sumneko Date: Tue, 16 Apr 2019 17:19:10 +0800 Subject: =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=96=87=E4=BB=B6=E5=85=B3=E8=81=94?= =?UTF-8?q?=E4=B9=9F=E8=A6=81=E9=87=8D=E6=96=B0=E6=89=AB=E6=8F=8F=E5=B7=A5?= =?UTF-8?q?=E4=BD=9C=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/service.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'server/src/service.lua') diff --git a/server/src/service.lua b/server/src/service.lua index b7290329..0a1b27aa 100644 --- a/server/src/service.lua +++ b/server/src/service.lua @@ -674,8 +674,10 @@ end function mt:onUpdateConfig(updated, other) local oldConfig = table.deepCopy(config.config) + local oldOther = table.deepCopy(config.other) config:setConfig(updated, other) local newConfig = config.config + local newOther = config.other if not table.equal(oldConfig.runtime, newConfig.runtime) then local library = require 'core.library' library.reload() @@ -685,7 +687,9 @@ function mt:onUpdateConfig(updated, other) log.debug('reDiagnostic') self:reDiagnostic() end - if not table.equal(oldConfig.workspace, newConfig.workspace) then + if not table.equal(oldConfig.workspace, newConfig.workspace) + or not table.equal(oldOther.associations, newOther.associations) + then self:clearAllFiles() if self.workspace then self.workspace:scanFiles() -- cgit v1.2.3