diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-07-05 17:12:07 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-07-05 17:12:07 +0800 |
commit | bc1baf261f3552ab5a6731389bd21824530a454b (patch) | |
tree | 38f5aaf86d09bd77a3aaacef6e376289b2cd918d /changelog.md | |
parent | 788709d4e2a2ae1d412a0afcfddbfbce19d04099 (diff) | |
download | lua-language-server-bc1baf261f3552ab5a6731389bd21824530a454b.zip |
resolve #511
Diffstat (limited to 'changelog.md')
-rw-r--r-- | changelog.md | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/changelog.md b/changelog.md index 2f4125f7..f4aa68a6 100644 --- a/changelog.md +++ b/changelog.md @@ -1,6 +1,21 @@ # changelog ## 2.2.0 +* `NEW` `LuaDoc`: supports literal table: + ```lua + ---@generic T + ---@param x T + ---@return { x: number, y: T, z?: boolean} + local function f(x) end + + local t = f('str') + -- hovering "t" shows: + local t: { + x: number, + y: string, + z?: boolean, + } + ``` * `FIX` supports for file with LF ## 2.1.0 |