Skip to content

Commit 0aeb518

Browse files
committed
remove Lua.hover.fieldInfer
1 parent 8daf8cb commit 0aeb518

File tree

7 files changed

+18
-42
lines changed

7 files changed

+18
-42
lines changed

package.json

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@
204204
"type": "string"
205205
},
206206
"deprecated": {
207-
"default": "None",
207+
"default": "Opened",
208208
"description": "%config.diagnostics.deprecated%",
209209
"enum": [
210210
"Any",
@@ -446,7 +446,7 @@
446446
"type": "string"
447447
},
448448
"undefined-field": {
449-
"default": "Opened",
449+
"default": "Any",
450450
"description": "%config.diagnostics.undefined-field%",
451451
"enum": [
452452
"Any",
@@ -991,14 +991,8 @@
991991
"scope": "resource",
992992
"type": "integer"
993993
},
994-
"Lua.hover.fieldInfer": {
995-
"default": 3000,
996-
"markdownDescription": "%config.hover.fieldInfer%",
997-
"scope": "resource",
998-
"type": "integer"
999-
},
1000994
"Lua.hover.previewFields": {
1001-
"default": 100,
995+
"default": 20,
1002996
"markdownDescription": "%config.hover.previewFields%",
1003997
"scope": "resource",
1004998
"type": "integer"
@@ -1251,7 +1245,7 @@
12511245
"type": "array"
12521246
},
12531247
"Lua.runtime.plugin": {
1254-
"default": ".vscode/lua/plugin.lua",
1248+
"default": "",
12551249
"markdownDescription": "%config.runtime.plugin%",
12561250
"scope": "resource",
12571251
"type": "string"

package.nls.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"config.runtime.fileEncoding": "File encoding. The `ansi` option is only available under the `Windows` platform.",
4545
"config.runtime.nonstandardSymbol": "Supports non-standard symbols. Make sure that your runtime environment supports these symbols.",
4646
"config.runtime.path": "`package.path`",
47-
"config.runtime.plugin": "(Proposed) Plugin path.",
47+
"config.runtime.plugin": "Plugin path. Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/Plugin) to learn more.",
4848
"config.runtime.special": "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",
4949
"config.runtime.unicodeName": "Allows Unicode characters in name.",
5050
"config.runtime.version": "Lua runtime version.",

package.nls.zh-cn.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"config.runtime.fileEncoding": "文件编码,`ansi` 选项只在 `Windows` 平台下有效。",
4848
"config.runtime.nonstandardSymbol": "支持非标准的符号。请务必确认你的运行环境支持这些符号。",
4949
"config.runtime.path": "`package.path`",
50-
"config.runtime.plugin": "(实验)插件路径。",
50+
"config.runtime.plugin": "插件路径,请查阅[文档](https://github.com/sumneko/lua-language-server/wiki/Plugin)了解用法",
5151
"config.runtime.special": "将自定义全局变量视为一些特殊的内置变量,语言服务将提供特殊的支持。\n下面这个例子表示将 `include` 视为 `require` 。\n```json\n\"Lua.runtime.special\" : {\n \"include\" : \"require\"\n}\n```\n",
5252
"config.runtime.unicodeName": "允许在名字中使用 Unicode 字符。",
5353
"config.runtime.version": "Lua运行版本。",

package/configuration.lua

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -291,16 +291,10 @@ local config = {
291291
default = true,
292292
markdownDescription = "%config.hover.viewNumber%"
293293
},
294-
['Lua.hover.fieldInfer'] = {
295-
scope = "resource",
296-
type = "integer",
297-
default = 3000,
298-
markdownDescription = "%config.hover.fieldInfer%"
299-
},
300294
['Lua.hover.previewFields'] = {
301295
scope = "resource",
302296
type = "integer",
303-
default = 100,
297+
default = 20,
304298
markdownDescription = "%config.hover.previewFields%"
305299
},
306300
['Lua.hover.enumsLimit'] = {

server

setting/schema-zh-cn.json

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@
177177
"type": "string"
178178
},
179179
"deprecated": {
180-
"default": "None",
180+
"default": "Opened",
181181
"description": "%config.diagnostics.deprecated%",
182182
"enum": [
183183
"Any",
@@ -419,7 +419,7 @@
419419
"type": "string"
420420
},
421421
"undefined-field": {
422-
"default": "Opened",
422+
"default": "Any",
423423
"description": "%config.diagnostics.undefined-field%",
424424
"enum": [
425425
"Any",
@@ -964,14 +964,8 @@
964964
"scope": "resource",
965965
"type": "integer"
966966
},
967-
"Lua.hover.fieldInfer": {
968-
"default": 3000,
969-
"markdownDescription": "悬停提示查看表时,会对表的每个字段进行类型推测,当类型推测的用时累计达到该设定值(毫秒)时,将跳过后续字段的类型推测。",
970-
"scope": "resource",
971-
"type": "integer"
972-
},
973967
"Lua.hover.previewFields": {
974-
"default": 100,
968+
"default": 20,
975969
"markdownDescription": "悬停提示查看表时,限制表内字段的最大预览数量。",
976970
"scope": "resource",
977971
"type": "integer"
@@ -1224,8 +1218,8 @@
12241218
"type": "array"
12251219
},
12261220
"Lua.runtime.plugin": {
1227-
"default": ".vscode/lua/plugin.lua",
1228-
"markdownDescription": "(实验)插件路径。",
1221+
"default": "",
1222+
"markdownDescription": "插件路径,请查阅[文档](https://github.com/sumneko/lua-language-server/wiki/Plugin)了解用法",
12291223
"scope": "resource",
12301224
"type": "string"
12311225
},

setting/schema.json

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@
177177
"type": "string"
178178
},
179179
"deprecated": {
180-
"default": "None",
180+
"default": "Opened",
181181
"description": "%config.diagnostics.deprecated%",
182182
"enum": [
183183
"Any",
@@ -419,7 +419,7 @@
419419
"type": "string"
420420
},
421421
"undefined-field": {
422-
"default": "Opened",
422+
"default": "Any",
423423
"description": "%config.diagnostics.undefined-field%",
424424
"enum": [
425425
"Any",
@@ -964,14 +964,8 @@
964964
"scope": "resource",
965965
"type": "integer"
966966
},
967-
"Lua.hover.fieldInfer": {
968-
"default": 3000,
969-
"markdownDescription": "When hovering to view a table, type infer will be performed for each field. When the accumulated time of type infer reaches the set value (MS), the type infer of subsequent fields will be skipped.",
970-
"scope": "resource",
971-
"type": "integer"
972-
},
973967
"Lua.hover.previewFields": {
974-
"default": 100,
968+
"default": 20,
975969
"markdownDescription": "When hovering to view a table, limits the maximum number of previews for fields.",
976970
"scope": "resource",
977971
"type": "integer"
@@ -1224,8 +1218,8 @@
12241218
"type": "array"
12251219
},
12261220
"Lua.runtime.plugin": {
1227-
"default": ".vscode/lua/plugin.lua",
1228-
"markdownDescription": "(Proposed) Plugin path.",
1221+
"default": "",
1222+
"markdownDescription": "Plugin path. Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/Plugin) to learn more.",
12291223
"scope": "resource",
12301224
"type": "string"
12311225
},

0 commit comments

Comments
 (0)