summaryrefslogtreecommitdiff
path: root/changelog.md
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-06-15 17:40:43 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-06-15 17:40:43 +0800
commitb22505b90c6df5fadfcad08bee82ec2f6d91bbaa (patch)
treecb45d1189a2b87d11f98d05ae22d51b45ce388a5 /changelog.md
parente6b82117616e5d055399aa1568fee90a99ba8d64 (diff)
downloadlua-language-server-b22505b90c6df5fadfcad08bee82ec2f6d91bbaa.zip
resolve #1105 infer type by `type(x)`
Diffstat (limited to 'changelog.md')
-rw-r--r--changelog.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/changelog.md b/changelog.md
index 01cb797f..15042aa8 100644
--- a/changelog.md
+++ b/changelog.md
@@ -26,6 +26,14 @@
local s = t and t.x or 1 -- `t` in `t.x` is `table`
```
+* `CHG` infer type by `type(x)`
+ ```lua
+ local x
+
+ if type(x) == 'string' then
+ print(x) -- `x` is `string` here
+ end
+ ```
* `FIX` with clients that support LSP 3.17 (VSCode), workspace diagnostics are triggered every time when opening a file.
* `FIX` [#1204](https://github.com/sumneko/lua-language-server/issues/1204)
* `FIX` [#1208](https://github.com/sumneko/lua-language-server/issues/1208)