diff options
Diffstat (limited to 'locale/en-us')
-rw-r--r-- | locale/en-us/script.lua | 2 | ||||
-rw-r--r-- | locale/en-us/setting.lua | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/locale/en-us/script.lua b/locale/en-us/script.lua index ba4a8bb9..fef242af 100644 --- a/locale/en-us/script.lua +++ b/locale/en-us/script.lua @@ -1005,4 +1005,4 @@ print(x) --> table ``` --- [View Proposal](https://github.com/sumneko/lua-language-server/issues/1030) -]=]
\ No newline at end of file +]=] diff --git a/locale/en-us/setting.lua b/locale/en-us/setting.lua index 9bb2969e..bc7746e0 100644 --- a/locale/en-us/setting.lua +++ b/locale/en-us/setting.lua @@ -259,6 +259,14 @@ config.IntelliSense.traceBeSetted = 'Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features) to learn more.' config.IntelliSense.traceFieldInject = 'Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features) to learn more.' +config.type.castNumberToInteger = +'Allowed to assign the `number` type to the `integer` type.' +config.type.weakUnionCheck = +[[ +Once one subtype of a union type meets the condition, the union type also meets the condition. + +When this setting is `false`, the `number|boolean` type cannot be assigned to the `number` type. It can be with `true`. +]] config.diagnostics['unused-local'] = 'Enable unused local variable diagnostics.' config.diagnostics['unused-function'] = |