Skip to content

Commit cfc76f1

Browse files
committed
3.10.0
1 parent 538a885 commit cfc76f1

12 files changed

+121
-4
lines changed

changelog.md

+24-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,29 @@
33
## Unreleased
44
<!-- Add all new changes here. They will be moved under a version at release -->
55

6+
## 3.10.0
7+
`2024-8-1`
8+
* `NEW` Add postfix snippet for `unpack`
9+
* `NEW` Add support for lambda style functions, `|paramList| expr` is syntactic sugar for `function(paramList) return expr end`
10+
* `NEW` Added lua regular expression support for `Lua.doc.<scope>Name` [#2753](https://github.com/LuaLS/lua-language-server/pull/2753)
11+
* `NEW` You can now click on "References" in CodeLen to display the reference list
12+
* `NEW` You can now click on "References" in CodeLen to display the reference list(VSCode)
13+
* `NEW` Improved behavior for inserting new lines:
14+
+ When inside an annotation, an annotation tag will be added at the beginning of the line (VSCode).
15+
+ When between `function () end` or similar constructs, the format will be adjusted to a more reasonable one (VSCode) and leading/trailing spaces will be removed (generic).
16+
+ Attempts to semantically fix improper indentation (generic).
17+
* `CHG` Improve performance of multithreaded `--check` and `undefined-field` diagnostic
18+
* `CHG` Change spacing of parameter inlay hints to match other LSPs, like `rust-analyzer`
19+
* `FIX` `diagnostics.severity` defaulting to "Warning" when run using `--check` [#2730](https://github.com/LuaLS/lua-language-server/issues/2730)
20+
* `FIX` Respect `completion.showParams` config for local function completion
21+
* `FIX` Addons can now self-recommend as expected. Fixed by correcting the `wholeMatch` function
22+
* `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)
23+
* `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)
24+
* `FIX` Inconsistent type narrow behavior of function call args [#2758](https://github.com/LuaLS/lua-language-server/issues/2758)
25+
* `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)
26+
* `FIX` Typos in annotation descriptions
27+
* `FIX` incorrect `CompletionItemKind` for postfix snippets [#2773](https://github.com/LuaLS/lua-language-server/pull/2773)
28+
629
## 3.9.3
730
`2024-6-11`
831
* `FIX` Sometimes providing incorrect autocompletion when chaining calls
@@ -140,7 +163,7 @@
140163
Cat = 1,
141164
Dog = 2,
142165
}
143-
166+
144167
---@param animal userdata
145168
---@param atp AnimalType
146169
---@return boolean

package.json

+15-1
Original file line numberDiff line numberDiff line change
@@ -2496,6 +2496,20 @@
24962496
"scope": "resource",
24972497
"type": "array"
24982498
},
2499+
"Lua.doc.regengine": {
2500+
"default": "glob",
2501+
"enum": [
2502+
"glob",
2503+
"lua"
2504+
],
2505+
"markdownDescription": "%config.doc.regengine%",
2506+
"markdownEnumDescriptions": [
2507+
"%config.doc.regengine.glob%",
2508+
"%config.doc.regengine.lua%"
2509+
],
2510+
"scope": "resource",
2511+
"type": "string"
2512+
},
24992513
"Lua.format.defaultConfig": {
25002514
"additionalProperties": false,
25012515
"default": {},
@@ -3368,5 +3382,5 @@
33683382
"sponsor": {
33693383
"url": "https://github.com/LuaLS/lua-language-server/issues/484"
33703384
},
3371-
"version": "3.9.3"
3385+
"version": "3.10.0"
33723386
}

package.nls.json

+3
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,9 @@
135135
"config.doc.packageName": "Treat specific field names as package, e.g. `m_*` means `XXX.m_id` and `XXX.m_type` are package, witch can only be accessed in the file where the definition is located.",
136136
"config.doc.privateName": "Treat specific field names as private, e.g. `m_*` means `XXX.m_id` and `XXX.m_type` are private, witch can only be accessed in the class where the definition is located.",
137137
"config.doc.protectedName": "Treat specific field names as protected, e.g. `m_*` means `XXX.m_id` and `XXX.m_type` are protected, witch can only be accessed in the class where the definition is located and its subclasses.",
138+
"config.doc.regengine": "TODO: Needs documentation",
139+
"config.doc.regengine.glob": "TODO: Needs documentation",
140+
"config.doc.regengine.lua": "TODO: Needs documentation",
138141
"config.format.defaultConfig": "The default format configuration. Has a lower priority than `.editorconfig` file in the workspace.\nRead [formatter docs](https://github.com/CppCXY/EmmyLuaCodeStyle/tree/master/docs) to learn usage.\n",
139142
"config.format.enable": "Enable code formatter.",
140143
"config.hint.arrayIndex": "Show hints of array index when constructing a table.",

package.nls.pt-br.json

+3
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,9 @@
135135
"config.doc.packageName": "Treat specific field names as package, e.g. `m_*` means `XXX.m_id` and `XXX.m_type` are package, witch can only be accessed in the file where the definition is located.",
136136
"config.doc.privateName": "Treat specific field names as private, e.g. `m_*` means `XXX.m_id` and `XXX.m_type` are private, witch can only be accessed in the class where the definition is located.",
137137
"config.doc.protectedName": "Treat specific field names as protected, e.g. `m_*` means `XXX.m_id` and `XXX.m_type` are protected, witch can only be accessed in the class where the definition is located and its subclasses.",
138+
"config.doc.regengine": "TODO: Needs documentation",
139+
"config.doc.regengine.glob": "TODO: Needs documentation",
140+
"config.doc.regengine.lua": "TODO: Needs documentation",
138141
"config.format.defaultConfig": "The default format configuration. Has a lower priority than `.editorconfig` file in the workspace.\nRead [formatter docs](https://github.com/CppCXY/EmmyLuaCodeStyle/tree/master/docs) to learn usage.\n",
139142
"config.format.enable": "Enable code formatter.",
140143
"config.hint.arrayIndex": "Show hints of array index when constructing a table.",

package.nls.zh-cn.json

+3
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,9 @@
135135
"config.doc.packageName": "将特定名称的字段视为package,例如 `m_*` 意味着 `XXX.m_id` 与 `XXX.m_type` 只能在定义所在的文件中访问。",
136136
"config.doc.privateName": "将特定名称的字段视为私有,例如 `m_*` 意味着 `XXX.m_id` 与 `XXX.m_type` 是私有字段,只能在定义所在的类中访问。",
137137
"config.doc.protectedName": "将特定名称的字段视为受保护,例如 `m_*` 意味着 `XXX.m_id` 与 `XXX.m_type` 是受保护的字段,只能在定义所在的类极其子类中访问。",
138+
"config.doc.regengine": "TODO: Needs documentation",
139+
"config.doc.regengine.glob": "TODO: Needs documentation",
140+
"config.doc.regengine.lua": "TODO: Needs documentation",
138141
"config.format.defaultConfig": "默认的格式化配置,优先级低于工作区内的 `.editorconfig` 文件。\n请查阅[格式化文档](https://github.com/CppCXY/EmmyLuaCodeStyle/tree/master/docs)了解用法。\n",
139142
"config.format.enable": "启用代码格式化程序。",
140143
"config.hint.arrayIndex": "在构造表时提示数组索引。",

package.nls.zh-tw.json

+3
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,9 @@
135135
"config.doc.packageName": "Treat specific field names as package, e.g. `m_*` means `XXX.m_id` and `XXX.m_type` are package, witch can only be accessed in the file where the definition is located.",
136136
"config.doc.privateName": "Treat specific field names as private, e.g. `m_*` means `XXX.m_id` and `XXX.m_type` are private, witch can only be accessed in the class where the definition is located.",
137137
"config.doc.protectedName": "Treat specific field names as protected, e.g. `m_*` means `XXX.m_id` and `XXX.m_type` are protected, witch can only be accessed in the class where the definition is located and its subclasses.",
138+
"config.doc.regengine": "TODO: Needs documentation",
139+
"config.doc.regengine.glob": "TODO: Needs documentation",
140+
"config.doc.regengine.lua": "TODO: Needs documentation",
138141
"config.format.defaultConfig": "預設的格式化組態,優先順序低於工作區內的 `.editorconfig` 檔案。\n請查閱[格式化文件](https://github.com/CppCXY/EmmyLuaCodeStyle/tree/master/docs)了解用法。\n",
139142
"config.format.enable": "啟用程式碼格式化程式。",
140143
"config.hint.arrayIndex": "在建構表時提示陣列索引。",

package/build.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
local json = require 'json-beautify'
22

3-
local VERSION = "3.9.3"
3+
local VERSION = "3.10.0"
44

55
local package = require 'package.package'
66
local fsu = require 'fs-utility'

server

setting/schema-pt-br.json

+17
Original file line numberDiff line numberDiff line change
@@ -2527,6 +2527,9 @@
25272527
},
25282528
"protectedName": {
25292529
"$ref": "#/properties/doc.protectedName"
2530+
},
2531+
"regengine": {
2532+
"$ref": "#/properties/doc.regengine"
25302533
}
25312534
}
25322535
},
@@ -2557,6 +2560,20 @@
25572560
"scope": "resource",
25582561
"type": "array"
25592562
},
2563+
"doc.regengine": {
2564+
"default": "glob",
2565+
"enum": [
2566+
"glob",
2567+
"lua"
2568+
],
2569+
"markdownDescription": "TODO: Needs documentation",
2570+
"markdownEnumDescriptions": [
2571+
"TODO: Needs documentation",
2572+
"TODO: Needs documentation"
2573+
],
2574+
"scope": "resource",
2575+
"type": "string"
2576+
},
25602577
"format": {
25612578
"properties": {
25622579
"defaultConfig": {

setting/schema-zh-cn.json

+17
Original file line numberDiff line numberDiff line change
@@ -2527,6 +2527,9 @@
25272527
},
25282528
"protectedName": {
25292529
"$ref": "#/properties/doc.protectedName"
2530+
},
2531+
"regengine": {
2532+
"$ref": "#/properties/doc.regengine"
25302533
}
25312534
}
25322535
},
@@ -2557,6 +2560,20 @@
25572560
"scope": "resource",
25582561
"type": "array"
25592562
},
2563+
"doc.regengine": {
2564+
"default": "glob",
2565+
"enum": [
2566+
"glob",
2567+
"lua"
2568+
],
2569+
"markdownDescription": "TODO: Needs documentation",
2570+
"markdownEnumDescriptions": [
2571+
"TODO: Needs documentation",
2572+
"TODO: Needs documentation"
2573+
],
2574+
"scope": "resource",
2575+
"type": "string"
2576+
},
25602577
"format": {
25612578
"properties": {
25622579
"defaultConfig": {

setting/schema-zh-tw.json

+17
Original file line numberDiff line numberDiff line change
@@ -2527,6 +2527,9 @@
25272527
},
25282528
"protectedName": {
25292529
"$ref": "#/properties/doc.protectedName"
2530+
},
2531+
"regengine": {
2532+
"$ref": "#/properties/doc.regengine"
25302533
}
25312534
}
25322535
},
@@ -2557,6 +2560,20 @@
25572560
"scope": "resource",
25582561
"type": "array"
25592562
},
2563+
"doc.regengine": {
2564+
"default": "glob",
2565+
"enum": [
2566+
"glob",
2567+
"lua"
2568+
],
2569+
"markdownDescription": "TODO: Needs documentation",
2570+
"markdownEnumDescriptions": [
2571+
"TODO: Needs documentation",
2572+
"TODO: Needs documentation"
2573+
],
2574+
"scope": "resource",
2575+
"type": "string"
2576+
},
25602577
"format": {
25612578
"properties": {
25622579
"defaultConfig": {

setting/schema.json

+17
Original file line numberDiff line numberDiff line change
@@ -2527,6 +2527,9 @@
25272527
},
25282528
"protectedName": {
25292529
"$ref": "#/properties/doc.protectedName"
2530+
},
2531+
"regengine": {
2532+
"$ref": "#/properties/doc.regengine"
25302533
}
25312534
}
25322535
},
@@ -2557,6 +2560,20 @@
25572560
"scope": "resource",
25582561
"type": "array"
25592562
},
2563+
"doc.regengine": {
2564+
"default": "glob",
2565+
"enum": [
2566+
"glob",
2567+
"lua"
2568+
],
2569+
"markdownDescription": "TODO: Needs documentation",
2570+
"markdownEnumDescriptions": [
2571+
"TODO: Needs documentation",
2572+
"TODO: Needs documentation"
2573+
],
2574+
"scope": "resource",
2575+
"type": "string"
2576+
},
25602577
"format": {
25612578
"properties": {
25622579
"defaultConfig": {

0 commit comments

Comments
 (0)