summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeOzay <colpaert.benoit@gmail.com>2024-07-23 17:55:39 +0200
committerNeOzay <colpaert.benoit@gmail.com>2024-07-23 17:55:39 +0200
commit7582afd72f6d111f81b9c48caf43bafa80a1887a (patch)
treec1320ac327bb667a9a73a423a8c065621981839e
parent0b8102e3774b74db5557a494567fb0a9c5da9013 (diff)
downloadlua-language-server-7582afd72f6d111f81b9c48caf43bafa80a1887a.zip
update changelog
-rw-r--r--changelog.md3
-rw-r--r--script/core/diagnostics/missing-fields.lua4
2 files changed, 4 insertions, 3 deletions
diff --git a/changelog.md b/changelog.md
index a82efdab..8efe3ce1 100644
--- a/changelog.md
+++ b/changelog.md
@@ -9,9 +9,10 @@
* `CHG` Improve performance of multithreaded `--check` and `undefined-field` diagnostic
* `FIX` Addons can now self-recommend as expected. Fixed by correcting the `wholeMatch` function
* `FIX` Now correctly evaluates the visibility of fields in a class when they are defined directly in the object. use for completion and invisible dianostic. [#2752](https://github.com/LuaLS/lua-language-server/issues/2752)
-* `NEW` added lua regular expression support for Lua.doc.<scope>Name [#2753](https://github.com/LuaLS/lua-language-server/pull/2753)
+* `NEW` Added lua regular expression support for Lua.doc.\<scope\>Name [#2753](https://github.com/LuaLS/lua-language-server/pull/2753)
* `FIX` Bad triggering of the `inject-field` diagnostic, when the fields are declared at the creation of the object [#2746](https://github.com/LuaLS/lua-language-server/issues/2746)
* `CHG` Change spacing of parameter inlay hints to match other LSPs, like `rust-analyzer`
+* `FIX` Improve the `missing-fields` logic to be able to correctly handle classes defined several times [#22770](https://github.com/LuaLS/lua-language-server/pull/2770)
## 3.9.3
`2024-6-11`
diff --git a/script/core/diagnostics/missing-fields.lua b/script/core/diagnostics/missing-fields.lua
index 746f7b00..b901461a 100644
--- a/script/core/diagnostics/missing-fields.lua
+++ b/script/core/diagnostics/missing-fields.lua
@@ -67,9 +67,9 @@ return function (uri, callback)
if #missedKeys == 0 then
return
- else
- warnings[#warnings+1] = lang.script('DIAG_MISSING_FIELDS', className, table.concat(missedKeys, ', '))
end
+
+ warnings[#warnings+1] = lang.script('DIAG_MISSING_FIELDS', className, table.concat(missedKeys, ', '))
end
if #warnings == 0 then