Skip to content

Commit 89ae264

Browse files
authored
Merge branch 'master' into fix-debugserver-linux
2 parents 0179078 + 9ebaa0d commit 89ae264

File tree

21 files changed

+2691
-0
lines changed

21 files changed

+2691
-0
lines changed

changelog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22

33
## Unreleased
44
<!-- Add all new changes here. They will be moved under a version at release -->
5+
<<
56
* `FIX` cannot debug in Linux due to lua-debug expecting host process to have lua54 symbols available
7+
* `NEW` `unnecessary-assert` diagnostic warns when asserting values that are always truthy
8+
* `NEW` locale `es-419`, thanks [Felipe Lema](https://codeberg.org/FelipeLema)
9+
* `FIX` prevent unnecessary edits by LSP formatting when content did not change
10+
* `FIX` return no completions if completion is disabled
611

712
## 3.13.9
813
`2025-3-13`

locale/en-us/script.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ DIAG_OVER_MAX_ARGS =
3636
'This function expects a maximum of {:d} argument(s) but instead it is receiving {:d}.'
3737
DIAG_MISS_ARGS =
3838
'This function requires {:d} argument(s) but instead it is receiving {:d}.'
39+
DIAG_UNNECESSARY_ASSERT =
40+
'Unnecessary assert: this expression is always truthy.'
3941
DIAG_OVER_MAX_VALUES =
4042
'Only has {} variables, but you set {} values.'
4143
DIAG_AMBIGUITY_1 =

locale/en-us/setting.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,8 @@ config.diagnostics['missing-return-value'] =
406406
'Enable diagnostics for return statements without values although the containing function declares returns.'
407407
config.diagnostics['need-check-nil'] =
408408
'Enable diagnostics for variable usages if `nil` or an optional (potentially `nil`) value was assigned to the variable before.'
409+
config.diagnostics['unnecessary-assert'] =
410+
'Enable diagnostics for redundant assertions on truthy values.'
409411
config.diagnostics['no-unknown'] =
410412
'Enable diagnostics for cases in which the type cannot be inferred.'
411413
config.diagnostics['not-yieldable'] =

locale/es-419/meta.lua

Lines changed: 764 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)