Skip to content

Commit eca843f

Browse files
committed
3.5.3
1 parent 53224d9 commit eca843f

File tree

13 files changed

+482
-233
lines changed

13 files changed

+482
-233
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,4 +119,4 @@ Software that the language server (or the development of it) uses:
119119
* [inspect.lua](https://github.com/kikito/inspect.lua)
120120

121121

122-
[checkmark]: https://gist.githubusercontent.com/carsakiller/362482775731de88cdafeeca9f6a392e/raw/cd3976e92a85aafe1f33e3f9fe3d0e0bd451902c/checkmark.png
122+
[checkmark]: https://user-images.githubusercontent.com/61925890/183228083-d3aa4eca-30c7-4b9f-aaab-26ce3d8a14fb.png

changelog.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# changelog
22

3+
## 3.5.3
4+
`2022-8-13`
5+
* `FIX` [#1409](https://github.com/sumneko/lua-language-server/issues/1409)
6+
* `FIX` [#1422](https://github.com/sumneko/lua-language-server/issues/1422)
7+
* `FIX` [#1425](https://github.com/sumneko/lua-language-server/issues/1425)
8+
* `FIX` [#1428](https://github.com/sumneko/lua-language-server/issues/1428)
9+
* `FIX` [#1430](https://github.com/sumneko/lua-language-server/issues/1430)
10+
* `FIX` [#1431](https://github.com/sumneko/lua-language-server/issues/1431)
11+
* `FIX` [#1446](https://github.com/sumneko/lua-language-server/issues/1446)
12+
* `FIX` [#1451](https://github.com/sumneko/lua-language-server/issues/1451)
13+
* `FIX` [#1461](https://github.com/sumneko/lua-language-server/issues/1461)
14+
* `FIX` [#1463](https://github.com/sumneko/lua-language-server/issues/1463)
15+
316
## 3.5.2
417
`2022-8-1`
518
* `FIX` [#1395](https://github.com/sumneko/lua-language-server/issues/1395)

package.json

Lines changed: 36 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@
124124
"enum": [
125125
"action-after-return",
126126
"ambiguity-1",
127+
"ambiguous-syntax",
127128
"args-after-dots",
128129
"assign-type-mismatch",
129130
"await-in-sync",
@@ -161,6 +162,30 @@
161162
"keyword",
162163
"local-limit",
163164
"lowercase-global",
165+
"lua-doc-miss-sign",
166+
"luadoc-error-diag-mode",
167+
"luadoc-miss-alias-extends",
168+
"luadoc-miss-alias-name",
169+
"luadoc-miss-arg-name",
170+
"luadoc-miss-cate-name",
171+
"luadoc-miss-class-extends-name",
172+
"luadoc-miss-class-name",
173+
"luadoc-miss-diag-mode",
174+
"luadoc-miss-diag-name",
175+
"luadoc-miss-field-extends",
176+
"luadoc-miss-field-name",
177+
"luadoc-miss-fun-after-overload",
178+
"luadoc-miss-generic-name",
179+
"luadoc-miss-local-name",
180+
"luadoc-miss-module-name",
181+
"luadoc-miss-operator-name",
182+
"luadoc-miss-param-extends",
183+
"luadoc-miss-param-name",
184+
"luadoc-miss-sign-name",
185+
"luadoc-miss-symbol",
186+
"luadoc-miss-type-name",
187+
"luadoc-miss-vararg-type",
188+
"luadoc-miss-version",
164189
"malformed-number",
165190
"miss-end",
166191
"miss-esc-x",
@@ -2747,6 +2772,15 @@
27472772
"title": "Lua",
27482773
"type": "object"
27492774
},
2775+
"configurationDefaults": {
2776+
"[lua]": {
2777+
"editor.quickSuggestions": {
2778+
"comments": "inline",
2779+
"other": "on",
2780+
"strings": "on"
2781+
}
2782+
}
2783+
},
27502784
"jsonValidation": [
27512785
{
27522786
"fileMatch": [
@@ -2881,16 +2915,7 @@
28812915
]
28822916
}
28832917
}
2884-
],
2885-
"configurationDefaults": {
2886-
"[lua]": {
2887-
"editor.quickSuggestions": {
2888-
"other": "on",
2889-
"comments": "inline",
2890-
"strings": "on"
2891-
}
2892-
}
2893-
}
2918+
]
28942919
},
28952920
"description": "Lua Language Server coded by Lua",
28962921
"displayName": "Lua",
@@ -2914,5 +2939,5 @@
29142939
"sponsor": {
29152940
"url": "https://github.com/sumneko/lua-language-server/issues/484"
29162941
},
2917-
"version": "3.5.2"
2942+
"version": "3.5.3"
29182943
}

package.nls.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"config.diagnostics.await-in-sync": "Enable diagnostics for calls of asynchronous functions within a synchronous function.",
3737
"config.diagnostics.cast-local-type": "Enable diagnostics for casts of local variables where the target type does not match the defined type.",
3838
"config.diagnostics.cast-type-mismatch": "Enable diagnostics for casts where the target type does not match the initial type.",
39-
"config.diagnostics.circle-doc-class": "Enable diagnostics for two classes inheriting from each other introducing a circular relation.",
39+
"config.diagnostics.circular-doc-class": "Enable diagnostics for two classes inheriting from each other introducing a circular relation.",
4040
"config.diagnostics.close-non-object": "Enable diagnostics for attempts to close a variable with a non-object.",
4141
"config.diagnostics.code-after-break": "Enable diagnostics for code placed after a break statement in a loop.",
4242
"config.diagnostics.codestyle": "* codestyle-check\n* spell-check",

package.nls.pt-br.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,29 @@
3131
"config.develop.enable": "Developer mode. Do not enable, performance will be affected.",
3232
"config.diagnostics.ambiguity": "* ambiguity-1\n* count-down-loop\n* different-requires\n* newfield-call\n* newline-call",
3333
"config.diagnostics.ambiguity-1": "优先级歧义,如:`num or 0 + 1`,推测用户的实际期望为 `(num or 0) + 1` ",
34+
"config.diagnostics.assign-type-mismatch": "Enable diagnostics for assignments in which the value's type does not match the type of the assigned variable.",
3435
"config.diagnostics.await": "* await-in-sync\n* not-yieldable",
36+
"config.diagnostics.await-in-sync": "Enable diagnostics for calls of asynchronous functions within a synchronous function.",
37+
"config.diagnostics.cast-local-type": "Enable diagnostics for casts of local variables where the target type does not match the defined type.",
38+
"config.diagnostics.cast-type-mismatch": "Enable diagnostics for casts where the target type does not match the initial type.",
39+
"config.diagnostics.circular-doc-class": "Enable diagnostics for two classes inheriting from each other introducing a circular relation.",
40+
"config.diagnostics.close-non-object": "Enable diagnostics for attempts to close a variable with a non-object.",
41+
"config.diagnostics.code-after-break": "Enable diagnostics for code placed after a break statement in a loop.",
3542
"config.diagnostics.codestyle": "* codestyle-check\n* spell-check",
43+
"config.diagnostics.codestyle-check": "Enable diagnostics for incorrectly styled lines.",
44+
"config.diagnostics.count-down-loop": "Enable diagnostics for `for` loops which will never reach their max/limit because the loop is incrementing instead of decrementing.",
45+
"config.diagnostics.deprecated": "Enable diagnostics to highlight deprecated API.",
46+
"config.diagnostics.different-requires": "Enable diagnostics for files which are required by two different paths.",
3647
"config.diagnostics.disable": "Disabled diagnostic (Use code in hover brackets).",
3748
"config.diagnostics.disableScheme": "Do not diagnose Lua files that use the following scheme.",
49+
"config.diagnostics.discard-returns": "Enable diagnostics for calls of functions annotated with `---@nodiscard` where the return values are ignored.",
50+
"config.diagnostics.doc-field-no-class": "Enable diagnostics to highlight a field annotation without a defining class annotation.",
3851
"config.diagnostics.duplicate": "* duplicate-index\n* duplicate-set-field",
52+
"config.diagnostics.duplicate-doc-alias": "Enable diagnostics for a duplicated alias annotation name.",
53+
"config.diagnostics.duplicate-doc-field": "Enable diagnostics for a duplicated field annotation name.",
54+
"config.diagnostics.duplicate-doc-param": "Enable diagnostics for a duplicated param annotation name.",
3955
"config.diagnostics.duplicate-index": "在字面量表中重复定义了索引",
56+
"config.diagnostics.duplicate-set-field": "Enable diagnostics for setting the same field in a class more than once.",
4057
"config.diagnostics.empty-block": "空代码块",
4158
"config.diagnostics.enable": "Enable diagnostics.",
4259
"config.diagnostics.global": "* global-in-nil-env\n* lowercase-global\n* undefined-env-child\n* undefined-global",
@@ -54,21 +71,41 @@
5471
"config.diagnostics.libraryFiles.Opened": "Only when these files are opened will it be diagnosed.",
5572
"config.diagnostics.lowercase-global": "首字母小写的全局变量定义",
5673
"config.diagnostics.luadoc": "* circle-doc-class\n* doc-field-no-class\n* duplicate-doc-alias\n* duplicate-doc-field\n* duplicate-doc-param\n* undefined-doc-class\n* undefined-doc-name\n* undefined-doc-param\n* unknown-cast-variable\n* unknown-diag-code\n* unknown-operator",
74+
"config.diagnostics.missing-parameter": "Enable diagnostics for function calls where the number of arguments is less than the number of annotated function parameters.",
75+
"config.diagnostics.missing-return": "Enable diagnostics for functions with return annotations which have no return statement.",
76+
"config.diagnostics.missing-return-value": "Enable diagnostics for return statements without values although the containing function declares returns.",
77+
"config.diagnostics.need-check-nil": "Enable diagnostics for variable usages if `nil` or an optional (potentially `nil`) value was assigned to the variable before.",
5778
"config.diagnostics.neededFileStatus": "* Opened: only diagnose opened files\n* Any: diagnose all files\n* None: disable this diagnostic\n\nEnd with `!` means override the group setting `diagnostics.groupFileStatus`.\n",
5879
"config.diagnostics.newfield-call": "在字面量表中,2行代码之间缺少分隔符,在语法上被解析为了一次索引操作",
5980
"config.diagnostics.newline-call": "以 `(` 开始的新行,在语法上被解析为了上一行的函数调用",
81+
"config.diagnostics.no-unknown": "Enable diagnostics for cases in which the type cannot be inferred.",
82+
"config.diagnostics.not-yieldable": "Enable diagnostics for calls to `coroutine.yield()` when it is not permitted.",
83+
"config.diagnostics.param-type-mismatch": "Enable diagnostics for function calls where the type of a provided parameter does not match the type of the annotated function definition.",
6084
"config.diagnostics.redefined": "* redefined-local",
6185
"config.diagnostics.redefined-local": "重复定义的局部变量",
6286
"config.diagnostics.redundant-parameter": "函数调用时,传入了多余的参数",
87+
"config.diagnostics.redundant-return": "Enable diagnostics for return statements which are not needed because the function would exit on its own.",
88+
"config.diagnostics.redundant-return-value": "Enable diagnostics for return statements which return an extra value which is not specified by a return annotation.",
6389
"config.diagnostics.redundant-value": "赋值操作时,值的数量比被赋值的对象多",
90+
"config.diagnostics.return-type-mismatch": "Enable diagnostics for return values whose type does not match the type declared in the corresponding return annotation.",
6491
"config.diagnostics.severity": "Modify the diagnostic severity.\n\nEnd with `!` means override the group setting `diagnostics.groupSeverity`.\n",
92+
"config.diagnostics.spell-check": "Enable diagnostics for typos in strings.",
6593
"config.diagnostics.strict": "* close-non-object\n* deprecated\n* discard-returns",
6694
"config.diagnostics.strong": "* no-unknown",
6795
"config.diagnostics.trailing-space": "后置空格",
6896
"config.diagnostics.type-check": "* assign-type-mismatch\n* cast-local-type\n* cast-type-mismatch\n* need-check-nil\n* param-type-mismatch\n* return-type-mismatch\n* undefined-field",
6997
"config.diagnostics.unbalanced": "* missing-parameter\n* missing-return\n* missing-return-value\n* redundant-parameter\n* redundant-return-value\n* redundant-value\n* unbalanced-assignments",
98+
"config.diagnostics.unbalanced-assignments": "Enable diagnostics on multiple assignments if not all variables obtain a value (e.g., `local x,y = 1`).",
99+
"config.diagnostics.undefined-doc-class": "Enable diagnostics for class annotations in which an undefined class is referenced.",
100+
"config.diagnostics.undefined-doc-name": "Enable diagnostics for type annotations referencing an undefined type or alias.",
101+
"config.diagnostics.undefined-doc-param": "Enable diagnostics for cases in which a parameter annotation is given without declaring the parameter in the function definition.",
70102
"config.diagnostics.undefined-env-child": "`_ENV` 被设置为了新的字面量表,但是试图获取的全局变量不再这张表中",
103+
"config.diagnostics.undefined-field": "Enable diagnostics for cases in which an undefined field of a variable is read.",
71104
"config.diagnostics.undefined-global": "未定义的全局变量",
105+
"config.diagnostics.unknown-cast-variable": "Enable diagnostics for casts of undefined variables.",
106+
"config.diagnostics.unknown-diag-code": "Enable diagnostics in cases in which an unknown diagnostics code is entered.",
107+
"config.diagnostics.unknown-operator": "Enable diagnostics for unknown operators.",
108+
"config.diagnostics.unreachable-code": "Enable diagnostics for unreachable code.",
72109
"config.diagnostics.unused": "* code-after-break\n* empty-block\n* redundant-return\n* trailing-space\n* unreachable-code\n* unused-function\n* unused-label\n* unused-local\n* unused-vararg",
73110
"config.diagnostics.unused-function": "未使用的函数",
74111
"config.diagnostics.unused-label": "未使用的标签",

0 commit comments

Comments
 (0)