From c5cdfa647574c38916c61930acf56469372d139f Mon Sep 17 00:00:00 2001 From: sumneko Date: Wed, 8 May 2019 16:51:55 +0800 Subject: =?UTF-8?q?#28=20=E6=8E=92=E9=99=A4=E7=9B=AE=E5=BD=95=E4=B9=9F?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=20files.exclude?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/method/initialized.lua | 5 +++++ server/src/method/workspace/didChangeConfiguration.lua | 5 +++++ 2 files changed, 10 insertions(+) (limited to 'server/src/method') diff --git a/server/src/method/initialized.lua b/server/src/method/initialized.lua index 05abffd7..47b924d0 100644 --- a/server/src/method/initialized.lua +++ b/server/src/method/initialized.lua @@ -51,11 +51,16 @@ return function (lsp) { scopeUri = uri, section = 'files.associations', + }, + { + scopeUri = uri, + section = 'files.exclude', } }, }, function (configs) lsp:onUpdateConfig(configs[1], { associations = configs[2], + exclude = configs[3], }) initAfterConfig(lsp, firstScope) end) diff --git a/server/src/method/workspace/didChangeConfiguration.lua b/server/src/method/workspace/didChangeConfiguration.lua index d5008954..ecaa9182 100644 --- a/server/src/method/workspace/didChangeConfiguration.lua +++ b/server/src/method/workspace/didChangeConfiguration.lua @@ -12,11 +12,16 @@ return function (lsp) { scopeUri = uri, section = 'files.associations', + }, + { + scopeUri = uri, + section = 'files.exclude', } }, }, function (configs) lsp:onUpdateConfig(configs[1], { associations = configs[2], + exclude = configs[3], }) end) end -- cgit v1.2.3