diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-07-11 20:34:44 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-07-11 20:34:44 +0800 |
commit | 2469dbae153066fad83edcced82f17aee77d0a9f (patch) | |
tree | 1f2fc76ce1344ee9e48935f94fe5b44182325453 /changelog.md | |
parent | 8f056d36ec61dd91cfab282780dc1786df646fcb (diff) | |
download | lua-language-server-2469dbae153066fad83edcced82f17aee77d0a9f.zip |
resolve #1029
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.md | 4 |
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) |