Skip to content

Commit 76ad79d

Browse files
committed
3.19.2
1 parent 057a387 commit 76ad79d

16 files changed

Lines changed: 81 additions & 3 deletions

‎changelog.md‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,18 @@
33
## Unreleased
44
<!-- Add all new changes here. They will be moved under a version at release -->
55

6+
## 3.19.2
7+
`2026-10-13`
8+
* `NEW` Setting `Lua.completion.requireFunction` to choose what the auto-require completion inserts (e.g. `import` instead of `require`)
9+
* `FIX` Support 6-digit hex color codes (with and without `#`) in `textDocument/documentColor`, and correct the `alpha` of `#RRGGBB` colors to the LSP range `0..1`
10+
* `FIX` Resolve unbound class generic parameters to `any` instead of leaving the parameter as the field type [#3442](https://github.com/LuaLS/lua-language-server/pull/3442)
11+
* `FIX` LuaJIT nil-coalescing `??` now strips the optional `?` from the left-hand type (e.g. `integer? ?? 2` infers `integer`) [#3459](https://github.com/LuaLS/lua-language-server/issues/3459)
12+
* `FIX` Literal string `"async"` in LuaDoc types (e.g. `---@field mode "async" | "sync"`) is no longer mis-parsed as the `async fun` prefix [#3402](https://github.com/LuaLS/lua-language-server/issues/3402)
13+
* `FIX` A `.gitignore` line containing only whitespace no longer ignores the entire workspace [#3458](https://github.com/LuaLS/lua-language-server/issues/3458)
14+
* `FIX` `need-check-nil` diagnostic is no longer reported on safe navigation access (e.g. `x?.field`, `f?.()`, `t?.[key]`), since the optional access itself already handles the nil check. Note that a non-safe access chained after a safe one (e.g. `x.upper()?.field`) still reports, because the safe access only protects its own result.
15+
* `FIX` Prevent hover and enum completion responses from containing invalid UTF-8 when escaped string literals decode to arbitrary bytes (e.g. `"\xC2"`).
16+
* `FIX` Fields accessed on a value typed as a constrained generic (e.g. `---@generic T: SomeClass` with `---@param self T`) are now looked up on the constraint, so existing fields no longer report `undefined-field` (unknown fields still do) [#2640](https://github.com/LuaLS/lua-language-server/discussions/2640)
17+
618
## 3.19.1
719
`2026-08-14`
820
* `NEW` LuaJIT 3.0 extension syntax can now also be enabled individually via `Lua.runtime.nonstandardSymbol` (`?.`, `??`, `ternary`, `~>>`, `~>>=`, `..=`, `~=`, `const`, `->`, `number_underscore`), independent of `Lua.runtime.version` and without the `Lua.runtime.enableLuaJITExtensions` master switch. Note that `~=` enables the bitwise-xor compound assignment only in statement context (e.g. `a ~= b` on its own line).

‎package.json‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,12 @@
142142
"scope": "resource",
143143
"type": "string"
144144
},
145+
"Lua.completion.requireFunction": {
146+
"default": "require",
147+
"markdownDescription": "%config.completion.requireFunction%",
148+
"scope": "resource",
149+
"type": "string"
150+
},
145151
"Lua.completion.requireSeparator": {
146152
"default": ".",
147153
"markdownDescription": "%config.completion.requireSeparator%",
@@ -3676,5 +3682,5 @@
36763682
"sponsor": {
36773683
"url": "https://github.com/LuaLS/lua-language-server/issues/484"
36783684
},
3679-
"version": "3.19.1"
3685+
"version": "3.19.2"
36803686
}

‎package.nls.es-419.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"config.completion.keywordSnippet.Replace": "Solo muestra `snippet de sintaxis`.",
2727
"config.completion.maxSuggestCount": "Número máximo de campos a analizar para autocompletar. Cuando un objeto tiene más campos que este límite, las sugerencias requerirán una entrada más específica para aparecer.",
2828
"config.completion.postfix": "El símbolo usado para lanzar la sugerencia posfija.",
29+
"config.completion.requireFunction": "La función que se inserta cuando se activa el auto-require.",
2930
"config.completion.requireSeparator": "Separador usado en `require`.",
3031
"config.completion.showParams": "Muestra los parámetros en la lista de completado. Cuando la función tiene múltiples definiciones, se mostrarán por separado.",
3132
"config.completion.showWord": "Muestra palabras contextuales en las sugerencias.",

‎package.nls.ja-jp.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"config.completion.keywordSnippet.Replace": "構文スニペットのみを表示します。",
2727
"config.completion.maxSuggestCount": "補完用に分析するフィールドの最大数。オブジェクトがこの制限より多くのフィールドを持つ場合、補完が表示されるにはより具体的な入力が必要になります。",
2828
"config.completion.postfix": "後置提案をトリガーするために使用されるシンボル。",
29+
"config.completion.requireFunction": "自動`require`時に挿入される関数。",
2930
"config.completion.requireSeparator": "`require`時に使用される区切り文字。",
3031
"config.completion.showParams": "補完リストにパラメータを表示します。関数に複数の定義がある場合、個別に表示されます。",
3132
"config.completion.showWord": "提案内にコンテキストワードを表示します。",

‎package.nls.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"config.completion.keywordSnippet.Replace": "Only shows `syntax snippet`.",
2727
"config.completion.maxSuggestCount": "Maximum number of fields to analyze for completions. When an object has more fields than this limit, completions will require more specific input to appear.",
2828
"config.completion.postfix": "The symbol used to trigger the postfix suggestion.",
29+
"config.completion.requireFunction": "The function to insert when an auto-require is triggered.",
2930
"config.completion.requireSeparator": "The separator used when `require`.",
3031
"config.completion.showParams": "Display parameters in completion list. When the function has multiple definitions, they will be displayed separately.",
3132
"config.completion.showWord": "Show contextual words in suggestions.",

‎package.nls.pt-br.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"config.completion.keywordSnippet.Replace": "Mostra apenas o `trecho de sintaxe`.",
2727
"config.completion.maxSuggestCount": "Número máximo de campos analisados para autocompletar. Se um objeto tiver mais campos que esse limite, serão necessárias entradas mais específicas para que as sugestões apareçam.",
2828
"config.completion.postfix": "Símbolo usado para acionar sugestões de pós-fixo.",
29+
"config.completion.requireFunction": "A função inserida quando o auto-require é acionado.",
2930
"config.completion.requireSeparator": "Separador usado em `require`.",
3031
"config.completion.showParams": "Mostrar parâmetros na lista de conclusão. Se a função tiver várias definições, elas serão exibidas separadamente.",
3132
"config.completion.showWord": "Mostrar palavras de contexto nas sugestões.",

‎package.nls.zh-cn.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"config.completion.keywordSnippet.Replace": "只显示 `语法片段`。",
2727
"config.completion.maxSuggestCount": "自动完成时最多分析的字段数量。当对象字段超过此上限时,需要更精确的输入才会显示补全。",
2828
"config.completion.postfix": "用于触发后缀建议的符号。",
29+
"config.completion.requireFunction": "触发自动 `require` 时插入的函数名。",
2930
"config.completion.requireSeparator": "`require` 时使用的分隔符。",
3031
"config.completion.showParams": "在建议列表中显示函数的参数信息,函数拥有多个定义时会分开显示。",
3132
"config.completion.showWord": "在建议中显示上下文单词。",

‎package.nls.zh-tw.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"config.completion.keywordSnippet.Replace": "只顯示 `語法片段`。",
2727
"config.completion.maxSuggestCount": "自動完成時最多分析的欄位數量。若物件欄位超過此上限,必須提供更精確的輸入才會顯示建議。",
2828
"config.completion.postfix": "用於觸發後綴建議的符號。",
29+
"config.completion.requireFunction": "觸發自動 `require` 時插入的函式名稱。",
2930
"config.completion.requireSeparator": "`require` 時使用的分隔符。",
3031
"config.completion.showParams": "在建議列表中顯示函式的參數資訊,函式擁有多個定義時會分開顯示。",
3132
"config.completion.showWord": "在建議中顯示上下文單詞。",

‎package/build.lua‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
local json = require 'json-beautify'
22

3-
local VERSION = "3.19.1"
3+
local VERSION = "3.19.2"
44

55
local fsu = require 'fs-utility'
66
local package = json.decode(fsu.loadFile(ROOT / 'package.json'))

0 commit comments

Comments
 (0)