Skip to content

Commit ddf14f0

Browse files
committed
生成 json 配置
1 parent 62eb453 commit ddf14f0

File tree

5 files changed

+80
-2
lines changed

5 files changed

+80
-2
lines changed

package.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,30 @@
338338
"title": "severity",
339339
"type": "object"
340340
},
341+
"Lua.hover.enable": {
342+
"default": true,
343+
"markdownDescription": "%config.hover.enable%",
344+
"scope": "resource",
345+
"type": "boolean"
346+
},
347+
"Lua.hover.viewNumber": {
348+
"default": true,
349+
"markdownDescription": "%config.hover.viewNumber%",
350+
"scope": "resource",
351+
"type": "boolean"
352+
},
353+
"Lua.hover.viewString": {
354+
"default": true,
355+
"markdownDescription": "%config.hover.viewString%",
356+
"scope": "resource",
357+
"type": "boolean"
358+
},
359+
"Lua.hover.viewStringMax": {
360+
"default": 1000,
361+
"markdownDescription": "%config.hover.viewStringMax%",
362+
"scope": "resource",
363+
"type": "integer"
364+
},
341365
"Lua.runtime.path": {
342366
"default": [
343367
"?.lua",

package.nls.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
"config.diagnostics.enable": "Enable diagnostics.",
2020
"config.diagnostics.globals": "Defined global variables.\n```json\n\"Lua.diagnostics.globals\" : [\n \"GLOBAL1\",\n \"GLOBAL2\"\n]\n```\n",
2121
"config.diagnostics.severity": "Modified diagnostic severity.\n```json\n\"Lua.diagnostics.severity\" : {\n \"redefined-local\" : \"Warning\",\n \"emmy-lua\" : \"Hint\"\n}\n```\n",
22+
"config.hover.enable": "Enable hover.",
23+
"config.hover.viewNumber": "Hover to view numeric content (only if literal is not decimal).",
24+
"config.hover.viewString": "Hover to view the contents of a string (only if the literal contains an escape character).",
2225
"config.runtime.path": "`package.path`",
2326
"config.runtime.version": "Lua runtime version.",
2427
"config.signatureHelp.enable": "Enable signature help.",

package.nls.zh-cn.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,12 @@
1919
"config.diagnostics.enable": "启用诊断。",
2020
"config.diagnostics.globals": "已定义的全局变量。\n```json\n\"Lua.diagnostics.globals\" : [\n \"GLOBAL1\",\n \"GLOBAL2\"\n]\n```\n",
2121
"config.diagnostics.severity": "修改诊断等级。\n```json\n\"Lua.diagnostics.severity\" : {\n \"redefined-local\" : \"Warning\",\n \"emmy-lua\" : \"Hint\"\n}\n```\n",
22+
"config.hover.enable": "启用悬停提示。",
23+
"config.hover.viewNumber": "悬停提示查看数字内容(仅当字面量不是十进制时)。",
24+
"config.hover.viewString": "悬停提示查看字符串内容(仅当字面量包含转义符时)。",
2225
"config.runtime.path": "`package.path`",
2326
"config.runtime.version": "Lua运行版本。",
24-
"config.signatureHelp.enable": "启用参数提示",
27+
"config.signatureHelp.enable": "启用参数提示",
2528
"config.workspace.ignoreDir": "忽略的目录(使用 `.gitignore` 语法)。\n```json\n\"Lua.workspace.ignoreDir\" : [\n \"temp/*.*\",\n \"!temp/*.lua\"\n]\n```\n",
2629
"config.workspace.ignoreSubmodules": "忽略子模块。",
2730
"config.workspace.library": "加载外部函数库。\n该功能可以加载外部的Lua文件,用于函数定义、自动完成等功能。注意,语言服务不会监视外部文件的变化,如果修改了外部文件需要重启。\n下面这个例子表示加载`C:/lua`与`../lib`中的所有文件,但不加载`../lib/temp`中的文件。\n```json\n\"Lua.workspace.library\": {\n \"C:/lua\": true,\n \"../lib\": [\n \"temp/*\"\n ]\n}\n```\n",

setting/schema-zh-cn.json

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,30 @@
322322
"title": "severity",
323323
"type": "object"
324324
},
325+
"Lua.hover.enable": {
326+
"default": true,
327+
"markdownDescription": "启用悬停提示。",
328+
"scope": "resource",
329+
"type": "boolean"
330+
},
331+
"Lua.hover.viewNumber": {
332+
"default": true,
333+
"markdownDescription": "悬停提示查看数字内容(仅当字面量不是十进制时)。",
334+
"scope": "resource",
335+
"type": "boolean"
336+
},
337+
"Lua.hover.viewString": {
338+
"default": true,
339+
"markdownDescription": "悬停提示查看字符串内容(仅当字面量包含转义符时)。",
340+
"scope": "resource",
341+
"type": "boolean"
342+
},
343+
"Lua.hover.viewStringMax": {
344+
"default": 1000,
345+
"markdownDescription": "%config.hover.viewStringMax%",
346+
"scope": "resource",
347+
"type": "integer"
348+
},
325349
"Lua.runtime.path": {
326350
"default": [
327351
"?.lua",
@@ -350,7 +374,7 @@
350374
},
351375
"Lua.signatureHelp.enable": {
352376
"default": true,
353-
"markdownDescription": "启用参数提示",
377+
"markdownDescription": "启用参数提示",
354378
"scope": "resource",
355379
"type": "boolean"
356380
},

setting/schema.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,30 @@
322322
"title": "severity",
323323
"type": "object"
324324
},
325+
"Lua.hover.enable": {
326+
"default": true,
327+
"markdownDescription": "Enable hover.",
328+
"scope": "resource",
329+
"type": "boolean"
330+
},
331+
"Lua.hover.viewNumber": {
332+
"default": true,
333+
"markdownDescription": "Hover to view numeric content (only if literal is not decimal).",
334+
"scope": "resource",
335+
"type": "boolean"
336+
},
337+
"Lua.hover.viewString": {
338+
"default": true,
339+
"markdownDescription": "Hover to view the contents of a string (only if the literal contains an escape character).",
340+
"scope": "resource",
341+
"type": "boolean"
342+
},
343+
"Lua.hover.viewStringMax": {
344+
"default": 1000,
345+
"markdownDescription": "%config.hover.viewStringMax%",
346+
"scope": "resource",
347+
"type": "integer"
348+
},
325349
"Lua.runtime.path": {
326350
"default": [
327351
"?.lua",

0 commit comments

Comments
 (0)