Skip to content

Commit 91d9f01

Browse files
committed
update server
1 parent fb6694c commit 91d9f01

16 files changed

+157
-94
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The Lua language server provides various language features for Lua to make devel
1414

1515
## Features
1616

17-
- ⚙️ Supports `Lua 5.4`, `Lua 5.3`, `Lua 5.2`, `Lua 5.1`, and `LuaJIT`
17+
- ⚙️ Supports `Lua 5.5`, `Lua 5.4`, `Lua 5.3`, `Lua 5.2`, `Lua 5.1`, and `LuaJIT`
1818
- 📄 Over 20 supported [annotations](https://luals.github.io/wiki/annotations/) for documenting your code
1919
- ↪ Go to definition
2020
- 🦺 Dynamic [type checking](https://luals.github.io/wiki/type-checking/)
@@ -65,6 +65,8 @@ The install methods below are maintained by community members.
6565
- `zh-cn` 🇨🇳
6666
- `zh-tw` 🇹🇼
6767
- `pt-br` 🇧🇷
68+
- `ja-jp` 🇯🇵
69+
- `es-419` 🇪🇸
6870

6971

7072
> **Note**

changelog.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,16 @@
22

33
## Unreleased
44
<!-- Add all new changes here. They will be moved under a version at release -->
5+
* `NEW` Support Lua 5.5
6+
* `FIX` Incorrect generation of function signatures with tuple-parameters
7+
* `NEW` Doc output now contains file paths for `@alias` and `@enum` types
8+
* `FIX` Typos in a few error messages.
59
* `FIX` Incorrect inject-field message for extra table field in exact class
6-
10+
* `CHG` Rename configuration option `Lua.diagnostics.disableScheme` to `Lua.diagnostics.validScheme` and improve its description. Now it enables diagnostics for Lua files that use the specified scheme.
711
* `FIX` adds the `|lambda|` operator to the `Lua.runtime.nonstandardSymbol` configuration template, which allows the use of that option. Previously, support for it existed in the parser, but we could not actually use the option because it is not recognised in the configuration.
812
* `FIX` Typed `@field` (eg `---@field [string] boolean`) should not override other defined field [#2171](https://github.com/LuaLS/lua-language-server/issues/2171), [#2711](https://github.com/LuaLS/lua-language-server/issues/2711)
13+
* `FIX` don't return empty hover doc when luals failed to find definition
14+
* `FIX` Prevent stack overflow when attempting to resolve function return values. [#3246](https://github.com/LuaLS/lua-language-server/issues/3246)
915

1016
## 3.15.0
1117
`2025-6-25`

package.json

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@
178178
"ambiguity-1",
179179
"ambiguous-syntax",
180180
"args-after-dots",
181+
"assign-const-global",
181182
"assign-type-mismatch",
182183
"await-in-sync",
183184
"block-after-else",
@@ -199,6 +200,7 @@
199200
"duplicate-index",
200201
"duplicate-set-field",
201202
"empty-block",
203+
"env-is-global",
202204
"err-assign-as-eq",
203205
"err-c-long-comment",
204206
"err-comment-prefix",
@@ -208,6 +210,7 @@
208210
"err-nonstandard-symbol",
209211
"err-then-as-do",
210212
"exp-in-action",
213+
"global-close-attribute",
211214
"global-element",
212215
"global-in-nil-env",
213216
"incomplete-signature-doc",
@@ -262,6 +265,7 @@
262265
"missing-parameter",
263266
"missing-return",
264267
"missing-return-value",
268+
"multi-close",
265269
"name-style-check",
266270
"need-check-nil",
267271
"need-paren",
@@ -291,6 +295,7 @@
291295
"undefined-global",
292296
"unexpect-dots",
293297
"unexpect-efunc-name",
298+
"unexpect-gfunc-name",
294299
"unexpect-lfunc-name",
295300
"unexpect-symbol",
296301
"unicode-name",
@@ -300,35 +305,37 @@
300305
"unknown-operator",
301306
"unknown-symbol",
302307
"unreachable-code",
308+
"unsupport-named-vararg",
303309
"unsupport-symbol",
304310
"unused-function",
305311
"unused-label",
306312
"unused-local",
307-
"unused-vararg"
313+
"unused-vararg",
314+
"variable-not-declared"
308315
],
309316
"type": "string"
310317
},
311318
"markdownDescription": "%config.diagnostics.disable%",
312319
"scope": "resource",
313320
"type": "array"
314321
},
315-
"Lua.diagnostics.disableScheme": {
322+
"Lua.diagnostics.enable": {
323+
"default": true,
324+
"markdownDescription": "%config.diagnostics.enable%",
325+
"scope": "resource",
326+
"type": "boolean"
327+
},
328+
"Lua.diagnostics.enableScheme": {
316329
"default": [
317-
"git"
330+
"file"
318331
],
319332
"items": {
320333
"type": "string"
321334
},
322-
"markdownDescription": "%config.diagnostics.disableScheme%",
335+
"markdownDescription": "%config.diagnostics.enableScheme%",
323336
"scope": "resource",
324337
"type": "array"
325338
},
326-
"Lua.diagnostics.enable": {
327-
"default": true,
328-
"markdownDescription": "%config.diagnostics.enable%",
329-
"scope": "resource",
330-
"type": "boolean"
331-
},
332339
"Lua.diagnostics.globals": {
333340
"default": [],
334341
"items": {

package.nls.es-419.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
"config.diagnostics.duplicate-set-field": "Habilita el diagnóstico para cuando se asigna el mismo campo en una clase más de una vez.",
6565
"config.diagnostics.empty-block": "Habilita el diagnóstico de bloques de código vacíos.",
6666
"config.diagnostics.enable": "Habilita los diagnósticos.",
67+
"config.diagnostics.enableScheme": "TODO: Needs documentation",
6768
"config.diagnostics.global": "* global-in-nil-env\n* lowercase-global\n* undefined-env-child\n* undefined-global",
6869
"config.diagnostics.global-element": "Habilita el diagnóstico que alerta sobre elementos globales.",
6970
"config.diagnostics.global-in-nil-env": "Habilita el diagnóstico para la prohibición de uso de variables globales (`_ENV` se fija a `nil`).",

package.nls.ja-jp.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
"config.diagnostics.duplicate-set-field": "Enable diagnostics for setting the same field in a class more than once.",
6565
"config.diagnostics.empty-block": "Enable empty code block diagnostics.",
6666
"config.diagnostics.enable": "Enable diagnostics.",
67+
"config.diagnostics.enableScheme": "TODO: Needs documentation",
6768
"config.diagnostics.global": "* global-in-nil-env\n* lowercase-global\n* undefined-env-child\n* undefined-global",
6869
"config.diagnostics.global-element": "Enable diagnostics to warn about global elements.",
6970
"config.diagnostics.global-in-nil-env": "Enable cannot use global variables ( `_ENV` is set to `nil`) diagnostics.",

package.nls.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353
"config.diagnostics.deprecated": "Enable diagnostics to highlight deprecated API.",
5454
"config.diagnostics.different-requires": "Enable diagnostics for files which are required by two different paths.",
5555
"config.diagnostics.disable": "Disabled diagnostic (Use code in hover brackets).",
56-
"config.diagnostics.disableScheme": "Do not diagnose Lua files that use the following scheme.",
5756
"config.diagnostics.discard-returns": "Enable diagnostics for calls of functions annotated with `---@nodiscard` where the return values are ignored.",
5857
"config.diagnostics.doc-field-no-class": "Enable diagnostics to highlight a field annotation without a defining class annotation.",
5958
"config.diagnostics.duplicate": "* duplicate-index\n* duplicate-set-field",
@@ -64,6 +63,7 @@
6463
"config.diagnostics.duplicate-set-field": "Enable diagnostics for setting the same field in a class more than once.",
6564
"config.diagnostics.empty-block": "Enable empty code block diagnostics.",
6665
"config.diagnostics.enable": "Enable diagnostics.",
66+
"config.diagnostics.enableScheme": "TODO: Needs documentation",
6767
"config.diagnostics.global": "* global-in-nil-env\n* lowercase-global\n* undefined-env-child\n* undefined-global",
6868
"config.diagnostics.global-element": "Enable diagnostics to warn about global elements.",
6969
"config.diagnostics.global-in-nil-env": "Enable cannot use global variables ( `_ENV` is set to `nil`) diagnostics.",
@@ -130,6 +130,7 @@
130130
"config.diagnostics.unused-local": "Enable unused local variable diagnostics.",
131131
"config.diagnostics.unused-vararg": "Enable unused vararg diagnostics.",
132132
"config.diagnostics.unusedLocalExclude": "Do not diagnose `unused-local` when the variable name matches the following pattern.",
133+
"config.diagnostics.validScheme": "Enable diagnostics for Lua files that use the following scheme.",
133134
"config.diagnostics.workspaceDelay": "Latency (milliseconds) for workspace diagnostics.",
134135
"config.diagnostics.workspaceEvent": "Set the time to trigger workspace diagnostics.",
135136
"config.diagnostics.workspaceEvent.None": "Disable workspace diagnostics.",

package.nls.pt-br.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
"config.diagnostics.duplicate-set-field": "Enable diagnostics for setting the same field in a class more than once.",
6565
"config.diagnostics.empty-block": "空代码块",
6666
"config.diagnostics.enable": "Enable diagnostics.",
67+
"config.diagnostics.enableScheme": "TODO: Needs documentation",
6768
"config.diagnostics.global": "* global-in-nil-env\n* lowercase-global\n* undefined-env-child\n* undefined-global",
6869
"config.diagnostics.global-element": "Enable diagnostics to warn about global elements.",
6970
"config.diagnostics.global-in-nil-env": "不能使用全局变量( `_ENV` 被设置为了 `nil`)",

package.nls.zh-cn.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353
"config.diagnostics.deprecated": "变量已被标记为deprecated(过时)但仍在使用",
5454
"config.diagnostics.different-requires": "required的同一个文件使用了两个不同的名字",
5555
"config.diagnostics.disable": "禁用的诊断(使用浮框括号内的代码)。",
56-
"config.diagnostics.disableScheme": "不诊断使用以下 scheme 的lua文件。",
5756
"config.diagnostics.discard-returns": "函数的返回值被忽略(函数被`@nodiscard`标记时)",
5857
"config.diagnostics.doc-field-no-class": "为不存在的类`@class`标记`@field`字段",
5958
"config.diagnostics.duplicate": "* duplicate-index\n* duplicate-set-field",
@@ -64,6 +63,7 @@
6463
"config.diagnostics.duplicate-set-field": "在一个类中多次定义同一字段",
6564
"config.diagnostics.empty-block": "空代码块",
6665
"config.diagnostics.enable": "启用诊断。",
66+
"config.diagnostics.enableScheme": "TODO: Needs documentation",
6767
"config.diagnostics.global": "* global-in-nil-env\n* lowercase-global\n* undefined-env-child\n* undefined-global",
6868
"config.diagnostics.global-element": "启用诊断以警告全局元素。",
6969
"config.diagnostics.global-in-nil-env": "不能使用全局变量( `_ENV` 被设置为了 `nil`)",
@@ -130,6 +130,7 @@
130130
"config.diagnostics.unused-local": "未使用的局部变量",
131131
"config.diagnostics.unused-vararg": "未使用的不定参数",
132132
"config.diagnostics.unusedLocalExclude": "如果变量名匹配以下规则,则不对其进行 `unused-local` 诊断。",
133+
"config.diagnostics.validScheme": "对使用以下 scheme 的lua文件启用诊断。",
133134
"config.diagnostics.workspaceDelay": "进行工作区诊断的延迟(毫秒)。",
134135
"config.diagnostics.workspaceEvent": "设置触发工作区诊断的时机。",
135136
"config.diagnostics.workspaceEvent.None": "关闭工作区诊断。",

package.nls.zh-tw.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353
"config.diagnostics.deprecated": "API已標記deprecated(棄用)但仍在使用",
5454
"config.diagnostics.different-requires": "required的同一個檔案使用了兩個不同的名字",
5555
"config.diagnostics.disable": "停用的診斷(使用浮框括號內的程式碼)。",
56-
"config.diagnostics.disableScheme": "不診斷使用以下 scheme 的lua檔案。",
5756
"config.diagnostics.discard-returns": "忽略了標註為 `@nodiscard` 的函式的回傳值",
5857
"config.diagnostics.doc-field-no-class": "向沒有標註 `@class` 的類別標註 `@field` 欄位",
5958
"config.diagnostics.duplicate": "* duplicate-index\n* duplicate-set-field",
@@ -64,6 +63,7 @@
6463
"config.diagnostics.duplicate-set-field": "在類別中多次定義相同的欄位",
6564
"config.diagnostics.empty-block": "空程式碼區塊",
6665
"config.diagnostics.enable": "啟用診斷。",
66+
"config.diagnostics.enableScheme": "TODO: Needs documentation",
6767
"config.diagnostics.global": "* global-in-nil-env\n* lowercase-global\n* undefined-env-child\n* undefined-global",
6868
"config.diagnostics.global-element": "對全域元素的警告",
6969
"config.diagnostics.global-in-nil-env": "不能使用全域變數( `_ENV` 被設定為 `nil`)",
@@ -130,6 +130,7 @@
130130
"config.diagnostics.unused-local": "未使用的區域變數",
131131
"config.diagnostics.unused-vararg": "未使用的不定引數",
132132
"config.diagnostics.unusedLocalExclude": "如果變數名符合以下規則,則不對其進行 `unused-local` 診斷。",
133+
"config.diagnostics.validScheme": "對使用以下 scheme 的lua檔案啟用診斷。",
133134
"config.diagnostics.workspaceDelay": "進行工作區診斷的延遲(毫秒)。",
134135
"config.diagnostics.workspaceEvent": "設定觸發工作區診斷的時機。",
135136
"config.diagnostics.workspaceEvent.None": "停用工作區診斷。",

server

Submodule server updated 111 files

0 commit comments

Comments
 (0)