Skip to content

Commit 0f40fcc

Browse files
committed
need additionalProperties for GUI
1 parent cb644a5 commit 0f40fcc

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@
183183
"type": "string"
184184
},
185185
"Lua.diagnostics.neededFileStatus": {
186+
"additionalProperties": false,
186187
"markdownDescription": "%config.diagnostics.neededFileStatus%",
187188
"properties": {
188189
"ambiguity-1": {
@@ -561,6 +562,7 @@
561562
"type": "object"
562563
},
563564
"Lua.diagnostics.severity": {
565+
"additionalProperties": false,
564566
"markdownDescription": "%config.diagnostics.severity%",
565567
"properties": {
566568
"ambiguity-1": {
@@ -1066,6 +1068,7 @@
10661068
"type": "array"
10671069
},
10681070
"Lua.runtime.builtin": {
1071+
"additionalProperties": false,
10691072
"markdownDescription": "%config.runtime.builtin%",
10701073
"properties": {
10711074
"basic": {
@@ -1273,6 +1276,7 @@
12731276
"type": "string"
12741277
},
12751278
"Lua.runtime.special": {
1279+
"additionalProperties": false,
12761280
"markdownDescription": "%config.runtime.special%",
12771281
"patternProperties": {
12781282
".*": {

package/configuration.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ local config = {
3131
scope = 'window',
3232
type = 'object',
3333
markdownDescription = '%config.runtime.special%',
34+
additionalProperties = false,
3435
patternProperties= {
3536
['.*'] = {
3637
type = "string",
@@ -89,6 +90,7 @@ local config = {
8990
['Lua.runtime.builtin'] = {
9091
scope = 'window',
9192
type = 'object',
93+
additionalProperties = false,
9294
properties = {},
9395
markdownDescription = '%config.runtime.builtin%',
9496
},
@@ -117,13 +119,15 @@ local config = {
117119
["Lua.diagnostics.severity"] = {
118120
scope = 'window',
119121
type = 'object',
122+
additionalProperties = false,
120123
markdownDescription = "%config.diagnostics.severity%",
121124
title = "severity",
122125
properties = {}
123126
},
124127
["Lua.diagnostics.neededFileStatus"] = {
125128
scope = 'window',
126129
type = 'object',
130+
additionalProperties = false,
127131
markdownDescription = "%config.diagnostics.neededFileStatus%",
128132
title = "neededFileStatus",
129133
properties = {}

setting/schema-zh-cn.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@
226226
"type": "string"
227227
},
228228
"diagnostics.neededFileStatus": {
229+
"additionalProperties": false,
229230
"markdownDescription": "如果你只想诊断打开的文件,选Opened;否则,选Any。\n",
230231
"properties": {
231232
"ambiguity-1": {
@@ -604,6 +605,7 @@
604605
"type": "object"
605606
},
606607
"diagnostics.severity": {
608+
"additionalProperties": false,
607609
"markdownDescription": "修改诊断等级。\n",
608610
"properties": {
609611
"ambiguity-1": {
@@ -1182,6 +1184,7 @@
11821184
}
11831185
},
11841186
"runtime.builtin": {
1187+
"additionalProperties": false,
11851188
"markdownDescription": "调整内置库的启用状态,你可以根据实际运行环境禁用掉不存在的库(或重新定义)。\n\n* `default`: 表示库会根据运行版本启用或禁用\n* `enable`: 总是启用\n* `disable`: 总是禁用\n",
11861189
"properties": {
11871190
"basic": {
@@ -1389,6 +1392,7 @@
13891392
"type": "string"
13901393
},
13911394
"runtime.special": {
1395+
"additionalProperties": false,
13921396
"markdownDescription": "将自定义全局变量视为一些特殊的内置变量,语言服务将提供特殊的支持。\n下面这个例子表示将 `include` 视为 `require` 。\n```json\n\"Lua.runtime.special\" : {\n \"include\" : \"require\"\n}\n```\n",
13931397
"patternProperties": {
13941398
".*": {

setting/schema.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@
226226
"type": "string"
227227
},
228228
"diagnostics.neededFileStatus": {
229+
"additionalProperties": false,
229230
"markdownDescription": "If you want to check only opened files, choice Opened; else choice Any.\n",
230231
"properties": {
231232
"ambiguity-1": {
@@ -604,6 +605,7 @@
604605
"type": "object"
605606
},
606607
"diagnostics.severity": {
608+
"additionalProperties": false,
607609
"markdownDescription": "Modified diagnostic severity.\n",
608610
"properties": {
609611
"ambiguity-1": {
@@ -1182,6 +1184,7 @@
11821184
}
11831185
},
11841186
"runtime.builtin": {
1187+
"additionalProperties": false,
11851188
"markdownDescription": "Adjust the enabled state of the built-in library. You can disable (or redefine) the non-existent library according to the actual runtime environment.\n\n* `default`: Indicates that the library will be enabled or disabled according to the runtime version\n* `enable`: always enable\n* `disable`: always disable\n",
11861189
"properties": {
11871190
"basic": {
@@ -1389,6 +1392,7 @@
13891392
"type": "string"
13901393
},
13911394
"runtime.special": {
1395+
"additionalProperties": false,
13921396
"markdownDescription": "The custom global variables are regarded as some special built-in variables, and the language server will provide special support\nThe following example shows that 'include' is treated as' require '.\n```json\n\"Lua.runtime.special\" : {\n \"include\" : \"require\"\n}\n```\n",
13931397
"patternProperties": {
13941398
".*": {

0 commit comments

Comments
 (0)