summaryrefslogtreecommitdiff
path: root/changelog.md
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-07-11 20:32:03 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-07-11 20:32:03 +0800
commit3820962ca2d23d525bc8417c8088e7eeb667cba1 (patch)
tree1f2fc76ce1344ee9e48935f94fe5b44182325453 /changelog.md
parent6d040fd8da9f77c92a6359657c2d845c3b62735d (diff)
downloadlua-language-server-3820962ca2d23d525bc8417c8088e7eeb667cba1.zip
resolve #1209
treat `_ENV = {}` as `local _ENV = {}` `local _ENV = nil` will disable all globals `local _ENV = {}` will enable all globals `local _ENV = {} ---@type mathlib` will open globals in mathlib
Diffstat (limited to 'changelog.md')
-rw-r--r--changelog.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/changelog.md b/changelog.md
index 895ec713..cc012db3 100644
--- a/changelog.md
+++ b/changelog.md
@@ -20,6 +20,10 @@
---@type number, _, boolean
local a, b, c -- `a` is `number`, `b` is `unknown`, `c` is `boolean`
```
+* `CHG` treat `_ENV = XXX` as `local _ENV = XXX`
+ * `_ENV = nil`: disable all globals
+ * `_ENV = {}`: allow all globals
+ * `_ENV = {} ---@type mathlib`: only allow globals in `mathlib`
* `FIX` [#880](https://github.com/sumneko/lua-language-server/issues/880)
* `FIX` [#1284](https://github.com/sumneko/lua-language-server/issues/1284)
* `FIX` [#1292](https://github.com/sumneko/lua-language-server/issues/1292)