summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2023-06-13 18:03:05 +0800
committer最萌小汐 <sumneko@hotmail.com>2023-06-13 18:03:05 +0800
commitcda4ec3f67a93a907752cc98572f0dac9c5dd83e (patch)
tree53f5684fa4d9591819fb3de8784441075e99d262
parent073aa8bf19938b370da4a22940dfa09c7453607a (diff)
downloadlua-language-server-cda4ec3f67a93a907752cc98572f0dac9c5dd83e.zip
update config in checking
fix #2038
-rw-r--r--changelog.md5
-rw-r--r--script/cli/check.lua3
2 files changed, 8 insertions, 0 deletions
diff --git a/changelog.md b/changelog.md
index 35c4c301..ab1a88d4 100644
--- a/changelog.md
+++ b/changelog.md
@@ -1,5 +1,10 @@
# changelog
+## 3.6.22
+* `FIX` [#2038]
+
+[#2038]: https://github.com/LuaLS/lua-language-server/issues/2038
+
## 3.6.21
`2023-5-24`
* `FIX` disable ffi plugin
diff --git a/script/cli/check.lua b/script/cli/check.lua
index 94f34b2a..323ea74b 100644
--- a/script/cli/check.lua
+++ b/script/cli/check.lua
@@ -9,6 +9,7 @@ local lang = require 'language'
local define = require 'proto.define'
local config = require 'config.config'
local fs = require 'bee.filesystem'
+local provider = require 'provider'
require 'vm'
@@ -52,6 +53,8 @@ lclient():start(function (client)
io.write(lang.script('CLI_CHECK_INITING'))
+ provider.updateConfig(rootUri)
+
ws.awaitReady(rootUri)
local disables = util.arrayToHash(config.get(rootUri, 'Lua.diagnostics.disable'))