diff options
author | AlexCai2019 <89138532+AlexCai2019@users.noreply.github.com> | 2022-05-08 01:43:28 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-08 01:43:28 +0800 |
commit | 0fd83c4ca9f82a02becab6c304a8a7de75098507 (patch) | |
tree | be9790d9d4823fe728c5b36e94093fe5f42b7725 /changelog.md | |
parent | 89203efad8c9b5513e05ca4d5696107924865b10 (diff) | |
parent | 67b4c574849d1667e0ecb39c51aeed8e30b43056 (diff) | |
download | lua-language-server-0fd83c4ca9f82a02becab6c304a8a7de75098507.zip |
Merge branch 'sumneko:master' into master
Diffstat (limited to 'changelog.md')
-rw-r--r-- | changelog.md | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/changelog.md b/changelog.md index 772be9e4..5c488788 100644 --- a/changelog.md +++ b/changelog.md @@ -1,10 +1,73 @@ # changelog +## 3.2.3 +* `CHG` parse `.luarc.json` as jsonc. In order to please the editor, it also supports `.luarc.jsonc` as the file name. +* `CHG` dose not load files in symbol links +* `FIX` diagnostic: send empty results to every file after startup +* `FIX` [#1103](https://github.com/sumneko/lua-language-server/issues/1103) +* `FIX` [#1107](https://github.com/sumneko/lua-language-server/issues/1107) + +## 3.2.2 +`2022-4-26` +* `FIX` diagnostic: `unused-function` cannot handle recursion correctly +* `FIX` [#1092](https://github.com/sumneko/lua-language-server/issues/1092) +* `FIX` [#1093](https://github.com/sumneko/lua-language-server/issues/1093) +* `FIX` runtime errors reported by telemetry, see [#1091](https://github.com/sumneko/lua-language-server/issues/1091) + +## 3.2.1 +`2022-4-25` +* `FIX` broken in VSCode + +## 3.2.0 +`2022-4-25` +* `NEW` supports infer of callback parameter + ```lua + ---@type string[] + local t + + table.sort(t, function (a, b) + -- `a` and `b` is `string` here + end) + ``` +* `NEW` using `---@overload` as class constructor + ```lua + ---@class Class + ---@overload fun():Class + local mt + + local x = mt() --> x is `Class` here + ``` +* `NEW` add `--[[@as type]]` + ```lua + local x = true + local y = x--[[@as integer]] -- y is `integer` here + ``` +* `NEW` add `---@cast` + * `---@cast localname type` + * `---@cast localname +type` + * `---@cast localname -type` + * `---@cast localname +?` + * `---@cast localname -?` +* `NEW` generic: resolve `T[]` by `table<integer, type>` or `---@field [integer] type` +* `NEW` resolve `class[1]` by `---@field [integer] type` +* `NEW` diagnostic: `missing-parameter` +* `NEW` diagnostic: `need-check-nil` +* `CHG` diagnostic: no longer mark `redundant-parameter` as `Unnecessary` +* `FIX` diagnostic: `unused-function` does not recognize recursion +* `FIX` [#1051](https://github.com/sumneko/lua-language-server/issues/1051) +* `FIX` [#1072](https://github.com/sumneko/lua-language-server/issues/1072) +* `FIX` [#1077](https://github.com/sumneko/lua-language-server/issues/1077) +* `FIX` [#1088](https://github.com/sumneko/lua-language-server/issues/1088) +* `FIX` runtime errors + ## 3.1.0 +`2022-4-17` +* `NEW` support find definition in method * `CHG` hint: move to LSP. Its font is now controlled by the client. * `CHG` hover: split `local` into `local` / `parameter` / `upvalue` / `self`. * `CHG` hover: added parentheses to some words, such as `global` / `field` / `class`. * `FIX` definition of `table<k, v>` +* `FIX` [#994](https://github.com/sumneko/lua-language-server/issues/994) * `FIX` [#1057](https://github.com/sumneko/lua-language-server/issues/1057) * `FIX` runtime errors reported by telemetry, see [#1058](https://github.com/sumneko/lua-language-server/issues/1058) |