Skip to content

Commit e56735f

Browse files
committed
update schema
1 parent 44bf755 commit e56735f

File tree

8 files changed

+96
-0
lines changed

8 files changed

+96
-0
lines changed

package.nls.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@
118118
"config.signatureHelp.enable": "Enable signature help.",
119119
"config.spell.dict": "Custom words for spell checking.",
120120
"config.telemetry.enable": "Enable telemetry to send your editor information and error logs over the network. Read our privacy policy [here](https://github.com/sumneko/lua-language-server/wiki/Privacy-Policy).\n",
121+
"config.type.castNumberToInteger": "Allowed to assign the `number` type to the `integer` type.",
122+
"config.type.weakUnionCheck": "Once one subtype of a union type meets the condition, the union type also meets the condition.\n\nWhen this setting is `false`, the `number|boolean` type cannot be assigned to the `number` type. It can be with `true`.\n",
121123
"config.window.progressBar": "Show progress bar in status bar.",
122124
"config.window.statusBar": "Show extension status in status bar.",
123125
"config.workspace.checkThirdParty": "Automatic detection and adaptation of third-party libraries, currently supported libraries are:\n\n* OpenResty\n* Cocos4.0\n* LÖVE\n* LÖVR\n* skynet\n* Jass\n",

package.nls.pt-br.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@
118118
"config.signatureHelp.enable": "Enable signature help.",
119119
"config.spell.dict": "Custom words for spell checking.",
120120
"config.telemetry.enable": "Enable telemetry to send your editor information and error logs over the network. Read our privacy policy [here](https://github.com/sumneko/lua-language-server/wiki/Privacy-Policy).\n",
121+
"config.type.castNumberToInteger": "Allowed to assign the `number` type to the `integer` type.",
122+
"config.type.weakUnionCheck": "Once one subtype of a union type meets the condition, the union type also meets the condition.\n\nWhen this setting is `false`, the `number|boolean` type cannot be assigned to the `number` type. It can be with `true`.\n",
121123
"config.window.progressBar": "Show progress bar in status bar.",
122124
"config.window.statusBar": "Show extension status in status bar.",
123125
"config.workspace.checkThirdParty": "Automatic detection and adaptation of third-party libraries, currently supported libraries are:\n\n* OpenResty\n* Cocos4.0\n* LÖVE\n* LÖVR\n* skynet\n* Jass\n",

package.nls.zh-cn.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@
118118
"config.signatureHelp.enable": "启用参数提示。",
119119
"config.spell.dict": "拼写检查的自定义单词。",
120120
"config.telemetry.enable": "启用遥测,通过网络发送你的编辑器信息与错误日志。在[此处](https://github.com/sumneko/lua-language-server/wiki/%E9%9A%90%E7%A7%81%E5%A3%B0%E6%98%8E)阅读我们的隐私声明。\n",
121+
"config.type.castNumberToInteger": "允许将 `number` 类型赋给 `integer` 类型。",
122+
"config.type.weakUnionCheck": "联合类型中只要有一个子类型满足条件,则联合类型也满足条件。\n\n此设置为 `false` 时,`number|boolean` 类型无法赋给 `number` 类型;为 `true` 时则可以。\n",
121123
"config.window.progressBar": "在状态栏显示进度条。",
122124
"config.window.statusBar": "在状态栏显示插件状态。",
123125
"config.workspace.checkThirdParty": "自动检测与适配第三方库,目前支持的库为:\n\n* OpenResty\n* Cocos4.0\n* LÖVE\n* LÖVR\n* skynet\n* Jass\n",

package.nls.zh-tw.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@
118118
"config.signatureHelp.enable": "啟用參數提示。",
119119
"config.spell.dict": "拼寫檢查的自訂單詞。",
120120
"config.telemetry.enable": "啟用遙測,透過網路發送你的編輯器資訊與錯誤日誌。在[此處](https://github.com/sumneko/lua-language-server/wiki/%E9%9A%B1%E7%A7%81%E8%81%B2%E6%98%8E)閱讀我們的隱私聲明。\n",
121+
"config.type.castNumberToInteger": "Allowed to assign the `number` type to the `integer` type.",
122+
"config.type.weakUnionCheck": "Once one subtype of a union type meets the condition, the union type also meets the condition.\n\nWhen this setting is `false`, the `number|boolean` type cannot be assigned to the `number` type. It can be with `true`.\n",
121123
"config.window.progressBar": "在狀態欄顯示進度條。",
122124
"config.window.statusBar": "在狀態欄顯示延伸模組狀態。",
123125
"config.workspace.checkThirdParty": "自動偵測與適應第三方庫,目前支援的庫為:\n\n* OpenResty\n* Cocos4.0\n* LÖVE\n* LÖVR\n* skynet\n* Jass\n",

setting/schema-pt-br.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2497,6 +2497,28 @@
24972497
"null"
24982498
]
24992499
},
2500+
"type": {
2501+
"properties": {
2502+
"castNumberToInteger": {
2503+
"$ref": "#/properties/type.castNumberToInteger"
2504+
},
2505+
"weakUnionCheck": {
2506+
"$ref": "#/properties/type.weakUnionCheck"
2507+
}
2508+
}
2509+
},
2510+
"type.castNumberToInteger": {
2511+
"default": false,
2512+
"markdownDescription": "Allowed to assign the `number` type to the `integer` type.",
2513+
"scope": "resource",
2514+
"type": "boolean"
2515+
},
2516+
"type.weakUnionCheck": {
2517+
"default": false,
2518+
"markdownDescription": "Once one subtype of a union type meets the condition, the union type also meets the condition.\n\nWhen this setting is `false`, the `number|boolean` type cannot be assigned to the `number` type. It can be with `true`.\n",
2519+
"scope": "resource",
2520+
"type": "boolean"
2521+
},
25002522
"window": {
25012523
"properties": {
25022524
"progressBar": {

setting/schema-zh-cn.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2497,6 +2497,28 @@
24972497
"null"
24982498
]
24992499
},
2500+
"type": {
2501+
"properties": {
2502+
"castNumberToInteger": {
2503+
"$ref": "#/properties/type.castNumberToInteger"
2504+
},
2505+
"weakUnionCheck": {
2506+
"$ref": "#/properties/type.weakUnionCheck"
2507+
}
2508+
}
2509+
},
2510+
"type.castNumberToInteger": {
2511+
"default": false,
2512+
"markdownDescription": "允许将 `number` 类型赋给 `integer` 类型。",
2513+
"scope": "resource",
2514+
"type": "boolean"
2515+
},
2516+
"type.weakUnionCheck": {
2517+
"default": false,
2518+
"markdownDescription": "联合类型中只要有一个子类型满足条件,则联合类型也满足条件。\n\n此设置为 `false` 时,`number|boolean` 类型无法赋给 `number` 类型;为 `true` 时则可以。\n",
2519+
"scope": "resource",
2520+
"type": "boolean"
2521+
},
25002522
"window": {
25012523
"properties": {
25022524
"progressBar": {

setting/schema-zh-tw.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2497,6 +2497,28 @@
24972497
"null"
24982498
]
24992499
},
2500+
"type": {
2501+
"properties": {
2502+
"castNumberToInteger": {
2503+
"$ref": "#/properties/type.castNumberToInteger"
2504+
},
2505+
"weakUnionCheck": {
2506+
"$ref": "#/properties/type.weakUnionCheck"
2507+
}
2508+
}
2509+
},
2510+
"type.castNumberToInteger": {
2511+
"default": false,
2512+
"markdownDescription": "Allowed to assign the `number` type to the `integer` type.",
2513+
"scope": "resource",
2514+
"type": "boolean"
2515+
},
2516+
"type.weakUnionCheck": {
2517+
"default": false,
2518+
"markdownDescription": "Once one subtype of a union type meets the condition, the union type also meets the condition.\n\nWhen this setting is `false`, the `number|boolean` type cannot be assigned to the `number` type. It can be with `true`.\n",
2519+
"scope": "resource",
2520+
"type": "boolean"
2521+
},
25002522
"window": {
25012523
"properties": {
25022524
"progressBar": {

setting/schema.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2497,6 +2497,28 @@
24972497
"null"
24982498
]
24992499
},
2500+
"type": {
2501+
"properties": {
2502+
"castNumberToInteger": {
2503+
"$ref": "#/properties/type.castNumberToInteger"
2504+
},
2505+
"weakUnionCheck": {
2506+
"$ref": "#/properties/type.weakUnionCheck"
2507+
}
2508+
}
2509+
},
2510+
"type.castNumberToInteger": {
2511+
"default": false,
2512+
"markdownDescription": "Allowed to assign the `number` type to the `integer` type.",
2513+
"scope": "resource",
2514+
"type": "boolean"
2515+
},
2516+
"type.weakUnionCheck": {
2517+
"default": false,
2518+
"markdownDescription": "Once one subtype of a union type meets the condition, the union type also meets the condition.\n\nWhen this setting is `false`, the `number|boolean` type cannot be assigned to the `number` type. It can be with `true`.\n",
2519+
"scope": "resource",
2520+
"type": "boolean"
2521+
},
25002522
"window": {
25012523
"properties": {
25022524
"progressBar": {

0 commit comments

Comments
 (0)