summaryrefslogtreecommitdiff
path: root/server/src/service.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/service.lua')
-rw-r--r--server/src/service.lua6
1 files changed, 5 insertions, 1 deletions
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()