Skip to content

Commit

Permalink
3.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sumneko committed Aug 1, 2024
1 parent 538a885 commit cfc76f1
Show file tree
Hide file tree
Showing 12 changed files with 121 additions and 4 deletions.
25 changes: 24 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,29 @@
## Unreleased
<!-- Add all new changes here. They will be moved under a version at release -->

## 3.10.0
`2024-8-1`
* `NEW` Add postfix snippet for `unpack`
* `NEW` Add support for lambda style functions, `|paramList| expr` is syntactic sugar for `function(paramList) return expr end`
* `NEW` Added lua regular expression support for `Lua.doc.<scope>Name` [#2753](https://github.com/LuaLS/lua-language-server/pull/2753)
* `NEW` You can now click on "References" in CodeLen to display the reference list
* `NEW` You can now click on "References" in CodeLen to display the reference list(VSCode)
* `NEW` Improved behavior for inserting new lines:
+ When inside an annotation, an annotation tag will be added at the beginning of the line (VSCode).
+ 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).
+ Attempts to semantically fix improper indentation (generic).
* `CHG` Improve performance of multithreaded `--check` and `undefined-field` diagnostic
* `CHG` Change spacing of parameter inlay hints to match other LSPs, like `rust-analyzer`
* `FIX` `diagnostics.severity` defaulting to "Warning" when run using `--check` [#2730](https://github.com/LuaLS/lua-language-server/issues/2730)
* `FIX` Respect `completion.showParams` config for local function completion
* `FIX` Addons can now self-recommend as expected. Fixed by correcting the `wholeMatch` function
* `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)
* `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)
* `FIX` Inconsistent type narrow behavior of function call args [#2758](https://github.com/LuaLS/lua-language-server/issues/2758)
* `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)
* `FIX` Typos in annotation descriptions
* `FIX` incorrect `CompletionItemKind` for postfix snippets [#2773](https://github.com/LuaLS/lua-language-server/pull/2773)

## 3.9.3
`2024-6-11`
* `FIX` Sometimes providing incorrect autocompletion when chaining calls
Expand Down Expand Up @@ -140,7 +163,7 @@
Cat = 1,
Dog = 2,
}

---@param animal userdata
---@param atp AnimalType
---@return boolean
Expand Down
16 changes: 15 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2496,6 +2496,20 @@
"scope": "resource",
"type": "array"
},
"Lua.doc.regengine": {
"default": "glob",
"enum": [
"glob",
"lua"
],
"markdownDescription": "%config.doc.regengine%",
"markdownEnumDescriptions": [
"%config.doc.regengine.glob%",
"%config.doc.regengine.lua%"
],
"scope": "resource",
"type": "string"
},
"Lua.format.defaultConfig": {
"additionalProperties": false,
"default": {},
Expand Down Expand Up @@ -3368,5 +3382,5 @@
"sponsor": {
"url": "https://github.com/LuaLS/lua-language-server/issues/484"
},
"version": "3.9.3"
"version": "3.10.0"
}
3 changes: 3 additions & 0 deletions package.nls.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@
"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.",
"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.",
"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.",
"config.doc.regengine": "TODO: Needs documentation",
"config.doc.regengine.glob": "TODO: Needs documentation",
"config.doc.regengine.lua": "TODO: Needs documentation",
"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",
"config.format.enable": "Enable code formatter.",
"config.hint.arrayIndex": "Show hints of array index when constructing a table.",
Expand Down
3 changes: 3 additions & 0 deletions package.nls.pt-br.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@
"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.",
"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.",
"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.",
"config.doc.regengine": "TODO: Needs documentation",
"config.doc.regengine.glob": "TODO: Needs documentation",
"config.doc.regengine.lua": "TODO: Needs documentation",
"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",
"config.format.enable": "Enable code formatter.",
"config.hint.arrayIndex": "Show hints of array index when constructing a table.",
Expand Down
3 changes: 3 additions & 0 deletions package.nls.zh-cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@
"config.doc.packageName": "将特定名称的字段视为package,例如 `m_*` 意味着 `XXX.m_id` 与 `XXX.m_type` 只能在定义所在的文件中访问。",
"config.doc.privateName": "将特定名称的字段视为私有,例如 `m_*` 意味着 `XXX.m_id` 与 `XXX.m_type` 是私有字段,只能在定义所在的类中访问。",
"config.doc.protectedName": "将特定名称的字段视为受保护,例如 `m_*` 意味着 `XXX.m_id` 与 `XXX.m_type` 是受保护的字段,只能在定义所在的类极其子类中访问。",
"config.doc.regengine": "TODO: Needs documentation",
"config.doc.regengine.glob": "TODO: Needs documentation",
"config.doc.regengine.lua": "TODO: Needs documentation",
"config.format.defaultConfig": "默认的格式化配置,优先级低于工作区内的 `.editorconfig` 文件。\n请查阅[格式化文档](https://github.com/CppCXY/EmmyLuaCodeStyle/tree/master/docs)了解用法。\n",
"config.format.enable": "启用代码格式化程序。",
"config.hint.arrayIndex": "在构造表时提示数组索引。",
Expand Down
3 changes: 3 additions & 0 deletions package.nls.zh-tw.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@
"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.",
"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.",
"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.",
"config.doc.regengine": "TODO: Needs documentation",
"config.doc.regengine.glob": "TODO: Needs documentation",
"config.doc.regengine.lua": "TODO: Needs documentation",
"config.format.defaultConfig": "預設的格式化組態,優先順序低於工作區內的 `.editorconfig` 檔案。\n請查閱[格式化文件](https://github.com/CppCXY/EmmyLuaCodeStyle/tree/master/docs)了解用法。\n",
"config.format.enable": "啟用程式碼格式化程式。",
"config.hint.arrayIndex": "在建構表時提示陣列索引。",
Expand Down
2 changes: 1 addition & 1 deletion package/build.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
local json = require 'json-beautify'

local VERSION = "3.9.3"
local VERSION = "3.10.0"

local package = require 'package.package'
local fsu = require 'fs-utility'
Expand Down
2 changes: 1 addition & 1 deletion server
Submodule server updated 1 files
+13 −10 changelog.md
17 changes: 17 additions & 0 deletions setting/schema-pt-br.json
Original file line number Diff line number Diff line change
Expand Up @@ -2527,6 +2527,9 @@
},
"protectedName": {
"$ref": "#/properties/doc.protectedName"
},
"regengine": {
"$ref": "#/properties/doc.regengine"
}
}
},
Expand Down Expand Up @@ -2557,6 +2560,20 @@
"scope": "resource",
"type": "array"
},
"doc.regengine": {
"default": "glob",
"enum": [
"glob",
"lua"
],
"markdownDescription": "TODO: Needs documentation",
"markdownEnumDescriptions": [
"TODO: Needs documentation",
"TODO: Needs documentation"
],
"scope": "resource",
"type": "string"
},
"format": {
"properties": {
"defaultConfig": {
Expand Down
17 changes: 17 additions & 0 deletions setting/schema-zh-cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -2527,6 +2527,9 @@
},
"protectedName": {
"$ref": "#/properties/doc.protectedName"
},
"regengine": {
"$ref": "#/properties/doc.regengine"
}
}
},
Expand Down Expand Up @@ -2557,6 +2560,20 @@
"scope": "resource",
"type": "array"
},
"doc.regengine": {
"default": "glob",
"enum": [
"glob",
"lua"
],
"markdownDescription": "TODO: Needs documentation",
"markdownEnumDescriptions": [
"TODO: Needs documentation",
"TODO: Needs documentation"
],
"scope": "resource",
"type": "string"
},
"format": {
"properties": {
"defaultConfig": {
Expand Down
17 changes: 17 additions & 0 deletions setting/schema-zh-tw.json
Original file line number Diff line number Diff line change
Expand Up @@ -2527,6 +2527,9 @@
},
"protectedName": {
"$ref": "#/properties/doc.protectedName"
},
"regengine": {
"$ref": "#/properties/doc.regengine"
}
}
},
Expand Down Expand Up @@ -2557,6 +2560,20 @@
"scope": "resource",
"type": "array"
},
"doc.regengine": {
"default": "glob",
"enum": [
"glob",
"lua"
],
"markdownDescription": "TODO: Needs documentation",
"markdownEnumDescriptions": [
"TODO: Needs documentation",
"TODO: Needs documentation"
],
"scope": "resource",
"type": "string"
},
"format": {
"properties": {
"defaultConfig": {
Expand Down
17 changes: 17 additions & 0 deletions setting/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2527,6 +2527,9 @@
},
"protectedName": {
"$ref": "#/properties/doc.protectedName"
},
"regengine": {
"$ref": "#/properties/doc.regengine"
}
}
},
Expand Down Expand Up @@ -2557,6 +2560,20 @@
"scope": "resource",
"type": "array"
},
"doc.regengine": {
"default": "glob",
"enum": [
"glob",
"lua"
],
"markdownDescription": "TODO: Needs documentation",
"markdownEnumDescriptions": [
"TODO: Needs documentation",
"TODO: Needs documentation"
],
"scope": "resource",
"type": "string"
},
"format": {
"properties": {
"defaultConfig": {
Expand Down

0 comments on commit cfc76f1

Please sign in to comment.