From 76c979bd235e24e111a09608e8705f9cc81f1af0 Mon Sep 17 00:00:00 2001 From: sumneko Date: Wed, 3 Apr 2019 15:14:38 +0800 Subject: =?UTF-8?q?=E6=A0=B9=E6=8D=AE=E8=BF=90=E8=A1=8C=E6=97=B6=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E5=8A=A0=E8=BD=BD=E4=B8=8D=E5=90=8C=E7=9A=84=E5=87=BD?= =?UTF-8?q?=E6=95=B0=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/method/workspace/didChangeConfiguration.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'server/src/method/workspace/didChangeConfiguration.lua') diff --git a/server/src/method/workspace/didChangeConfiguration.lua b/server/src/method/workspace/didChangeConfiguration.lua index dd1f84ff..67737eec 100644 --- a/server/src/method/workspace/didChangeConfiguration.lua +++ b/server/src/method/workspace/didChangeConfiguration.lua @@ -53,6 +53,9 @@ return function (lsp) local oldConfig = copyTable(config.config) config:setConfig(configs[1]) local newConfig = config.config + if not eq(oldConfig.runtime, newConfig.runtime) then + lsp:reCompile() + end if not eq(oldConfig.diagnostics, newConfig.diagnostics) then log.debug('reDiagnostic') lsp:reDiagnostic() -- cgit v1.2.3