summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2023-03-29 15:52:59 +0800
committer最萌小汐 <sumneko@hotmail.com>2023-03-29 15:52:59 +0800
commit1b6a98259997b8b2a2fb78d54eff21ba510b1f70 (patch)
tree179d9b94abece04d40594de3ace796075b385fa8
parent7156ce8346bf091b39c247a59291a7d4097d78fb (diff)
downloadlua-language-server-1b6a98259997b8b2a2fb78d54eff21ba510b1f70.zip
commandline parameter `checklevel` may not work
-rw-r--r--changelog.md1
-rw-r--r--script/cli/check.lua2
2 files changed, 2 insertions, 1 deletions
diff --git a/changelog.md b/changelog.md
index c1700393..325a0a15 100644
--- a/changelog.md
+++ b/changelog.md
@@ -1,6 +1,7 @@
# changelog
## 3.6.19
+* `FIX` commandline parameter `checklevel` may not work
* `FIX` [#2036]
* `FIX` [#2037]
diff --git a/script/cli/check.lua b/script/cli/check.lua
index ea767fae..94f34b2a 100644
--- a/script/cli/check.lua
+++ b/script/cli/check.lua
@@ -64,7 +64,7 @@ lclient():start(function (client)
disables[name] = true
end
end
- config.set(nil, 'Lua.diagnostics.disable', util.getTableKeys(disables, true))
+ config.set(rootUri, 'Lua.diagnostics.disable', util.getTableKeys(disables, true))
local uris = files.getAllUris(rootUri)
local max = #uris