|
1 | 1 | # changelog |
2 | 2 |
|
| 3 | +## 2.5.0 |
| 4 | +* `NEW` settings: |
| 5 | + + `Lua.runtime.pathStrict`: not check subdirectories when using `runtime.path` |
| 6 | + + `Lua.hint.await`: display `await` when calling a function marked as async |
| 7 | + + `Lua.completion.postfix`: the symbol that triggers postfix, default is `@` |
| 8 | +* `NEW` add supports for `lovr` |
| 9 | +* `NEW` file encoding supports `utf16le` and `utf16be` |
| 10 | +* `NEW` full IntelliSense supports for literal tables, see [#720](https://github.com/sumneko/lua-language-server/issues/720) and [#727](https://github.com/sumneko/lua-language-server/issues/727) |
| 11 | +* `NEW` `LuaDoc` annotations: |
| 12 | + + `---@async`: mark a function as async |
| 13 | + + `---@nodiscard`: the return value of the marking function cannot be discarded |
| 14 | +* `NEW` diagnostics: |
| 15 | + + `await-in-sync`: check whether calls async function in sync function. disabled by default. |
| 16 | + + `not-yieldable`: check whether the function supports async functions as parameters. disabled by default. |
| 17 | + + `discard-returns`: check whether the return value is discarded. |
| 18 | +* `NEW` locale `pt-br`, thanks [Jeferson Ferreira](https://github.com/jefersonf) |
| 19 | +* `NEW` supports [utf-8-offsets](https://clangd.llvm.org/extensions#utf-8-offsets) |
| 20 | +* `NEW` supports quickfix for `.luarc.json` |
| 21 | +* `NEW` completion postifx: `@function`, `@method`, `@pcall`, `@xpcall`, `@insert`, `@remove`, `@concat`, `++`, `++?` |
| 22 | +* `CHG` `LuaDoc`: |
| 23 | + + `---@class` can be re-declared |
| 24 | + + supports unicode |
| 25 | + + supports `---@param ... number`, equivalent to `---@vararg number` |
| 26 | + + supports `fun(...: string)` |
| 27 | + + supports `fun(x, y, ...)`, equivalent to `fun(x: any, y: any, ...: any)` |
| 28 | +* `CHG` settings from `--configpath`, `.luarc.json`, `client` no longer prevent subsequent settings, instead they are merged in order |
| 29 | +* `CHG` no longer asks to trust plugin in VSCode, because VSCode already provides the workspace trust feature |
| 30 | +* `CHG` skip huge files (>= 10 MB) |
| 31 | +* `CHG` after using `Lua.runtime.nonstandardSymbol` to treat `//` as a comment, `//` is no longer parsed as an operator |
| 32 | + |
| 33 | +## 2.4.11 |
| 34 | +`2021-11-25` |
| 35 | +* `FIX` [#816](https://github.com/sumneko/lua-language-server/issues/816) |
| 36 | +* `FIX` [#817](https://github.com/sumneko/lua-language-server/issues/817) |
| 37 | +* `FIX` [#818](https://github.com/sumneko/lua-language-server/issues/818) |
| 38 | +* `FIX` [#820](https://github.com/sumneko/lua-language-server/issues/820) |
| 39 | + |
3 | 40 | ## 2.4.10 |
4 | 41 | `2021-11-23` |
5 | 42 | * `FIX` [#790](https://github.com/sumneko/lua-language-server/issues/790) |
|
0 commit comments