Skip to content

Commit 94c36c6

Browse files
committed
type.castNumberToInteger default by true
1 parent 7699e4b commit 94c36c6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# changelog
22

33
## 3.5.1
4+
* `CHG` setting `type.castNumberToInteger` default by `true`
45
* `FIX` [#1335](https://github.com/sumneko/lua-language-server/issues/1335)
56
* `FIX` [#1354](https://github.com/sumneko/lua-language-server/issues/1354)
67

script/config/template.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ local template = {
373373
['Lua.spell.dict'] = Type.Array(Type.String),
374374
['Lua.telemetry.enable'] = Type.Or(Type.Boolean >> false, Type.Nil) >> nil,
375375
['Lua.misc.parameters'] = Type.Array(Type.String),
376-
['Lua.type.castNumberToInteger'] = Type.Boolean >> false,
376+
['Lua.type.castNumberToInteger'] = Type.Boolean >> true,
377377
['Lua.type.weakUnionCheck'] = Type.Boolean >> false,
378378
['Lua.type.weakNilCheck'] = Type.Boolean >> false,
379379

0 commit comments

Comments
 (0)