Skip to content

Commit 96bd124

Browse files
committed
update schema
1 parent 305b626 commit 96bd124

File tree

3 files changed

+396
-8
lines changed

3 files changed

+396
-8
lines changed

setting/build.lua

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ local fsu = require 'fs-utility'
66

77
local function addSplited(t, key, value)
88
t[key] = value
9-
local left, right = key:match '([^%.]+)%.(.+)'
10-
if not left then
11-
return
9+
for pos in key:gmatch '()%.' do
10+
local left = key:sub(1, pos - 1)
11+
local right = key:sub(pos + 1)
12+
local nt = t[left] or {
13+
properties = {}
14+
}
15+
t[left] = nt
16+
addSplited(nt.properties, right, value)
1217
end
13-
local nt = t[left] or {
14-
properties = {}
15-
}
16-
t[left] = nt
17-
addSplited(nt.properties, right, value)
1818
end
1919

2020
local function copyWithNLS(t, callback)

setting/schema-zh-cn.json

Lines changed: 194 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,13 @@
350350
}
351351
}
352352
},
353+
"Lua.color": {
354+
"properties": {
355+
"mode": {
356+
"$ref": "#/properties/Lua.color.mode"
357+
}
358+
}
359+
},
353360
"Lua.color.mode": {
354361
"default": "Semantic",
355362
"enum": [
@@ -366,6 +373,37 @@
366373
"scope": "resource",
367374
"type": "string"
368375
},
376+
"Lua.completion": {
377+
"properties": {
378+
"autoRequire": {
379+
"$ref": "#/properties/Lua.completion.autoRequire"
380+
},
381+
"callSnippet": {
382+
"$ref": "#/properties/Lua.completion.callSnippet"
383+
},
384+
"displayContext": {
385+
"$ref": "#/properties/Lua.completion.displayContext"
386+
},
387+
"enable": {
388+
"$ref": "#/properties/Lua.completion.enable"
389+
},
390+
"keywordSnippet": {
391+
"$ref": "#/properties/Lua.completion.keywordSnippet"
392+
},
393+
"requireSeparator": {
394+
"$ref": "#/properties/Lua.completion.requireSeparator"
395+
},
396+
"showParams": {
397+
"$ref": "#/properties/Lua.completion.showParams"
398+
},
399+
"showWord": {
400+
"$ref": "#/properties/Lua.completion.showWord"
401+
},
402+
"workspaceWord": {
403+
"$ref": "#/properties/Lua.completion.workspaceWord"
404+
}
405+
}
406+
},
369407
"Lua.completion.autoRequire": {
370408
"default": true,
371409
"markdownDescription": "输入内容看起来是个文件名时,自动 `require` 此文件。",
@@ -450,6 +488,37 @@
450488
"scope": "resource",
451489
"type": "boolean"
452490
},
491+
"Lua.diagnostics": {
492+
"properties": {
493+
"disable": {
494+
"$ref": "#/properties/Lua.diagnostics.disable"
495+
},
496+
"enable": {
497+
"$ref": "#/properties/Lua.diagnostics.enable"
498+
},
499+
"globals": {
500+
"$ref": "#/properties/Lua.diagnostics.globals"
501+
},
502+
"ignoredFiles": {
503+
"$ref": "#/properties/Lua.diagnostics.ignoredFiles"
504+
},
505+
"libraryFiles": {
506+
"$ref": "#/properties/Lua.diagnostics.libraryFiles"
507+
},
508+
"neededFileStatus": {
509+
"$ref": "#/properties/Lua.diagnostics.neededFileStatus"
510+
},
511+
"severity": {
512+
"$ref": "#/properties/Lua.diagnostics.severity"
513+
},
514+
"workspaceDelay": {
515+
"$ref": "#/properties/Lua.diagnostics.workspaceDelay"
516+
},
517+
"workspaceRate": {
518+
"$ref": "#/properties/Lua.diagnostics.workspaceRate"
519+
}
520+
}
521+
},
453522
"Lua.diagnostics.disable": {
454523
"items": {
455524
"type": "string"
@@ -1360,6 +1429,22 @@
13601429
"scope": "resource",
13611430
"type": "integer"
13621431
},
1432+
"Lua.hint": {
1433+
"properties": {
1434+
"enable": {
1435+
"$ref": "#/properties/Lua.hint.enable"
1436+
},
1437+
"paramName": {
1438+
"$ref": "#/properties/Lua.hint.paramName"
1439+
},
1440+
"paramType": {
1441+
"$ref": "#/properties/Lua.hint.paramType"
1442+
},
1443+
"setType": {
1444+
"$ref": "#/properties/Lua.hint.setType"
1445+
}
1446+
}
1447+
},
13631448
"Lua.hint.enable": {
13641449
"default": false,
13651450
"markdownDescription": "启用内联提示。",
@@ -1394,6 +1479,28 @@
13941479
"scope": "resource",
13951480
"type": "boolean"
13961481
},
1482+
"Lua.hover": {
1483+
"properties": {
1484+
"enable": {
1485+
"$ref": "#/properties/Lua.hover.enable"
1486+
},
1487+
"enumsLimit": {
1488+
"$ref": "#/properties/Lua.hover.enumsLimit"
1489+
},
1490+
"previewFields": {
1491+
"$ref": "#/properties/Lua.hover.previewFields"
1492+
},
1493+
"viewNumber": {
1494+
"$ref": "#/properties/Lua.hover.viewNumber"
1495+
},
1496+
"viewString": {
1497+
"$ref": "#/properties/Lua.hover.viewString"
1498+
},
1499+
"viewStringMax": {
1500+
"$ref": "#/properties/Lua.hover.viewStringMax"
1501+
}
1502+
}
1503+
},
13971504
"Lua.hover.enable": {
13981505
"default": true,
13991506
"markdownDescription": "启用悬停提示。",
@@ -1430,6 +1537,13 @@
14301537
"scope": "resource",
14311538
"type": "integer"
14321539
},
1540+
"Lua.misc": {
1541+
"properties": {
1542+
"parameters": {
1543+
"$ref": "#/properties/Lua.misc.parameters"
1544+
}
1545+
}
1546+
},
14331547
"Lua.misc.parameters": {
14341548
"items": {
14351549
"type": "string"
@@ -1438,6 +1552,34 @@
14381552
"scope": "resource",
14391553
"type": "array"
14401554
},
1555+
"Lua.runtime": {
1556+
"properties": {
1557+
"builtin": {
1558+
"$ref": "#/properties/Lua.runtime.builtin"
1559+
},
1560+
"fileEncoding": {
1561+
"$ref": "#/properties/Lua.runtime.fileEncoding"
1562+
},
1563+
"nonstandardSymbol": {
1564+
"$ref": "#/properties/Lua.runtime.nonstandardSymbol"
1565+
},
1566+
"path": {
1567+
"$ref": "#/properties/Lua.runtime.path"
1568+
},
1569+
"plugin": {
1570+
"$ref": "#/properties/Lua.runtime.plugin"
1571+
},
1572+
"special": {
1573+
"$ref": "#/properties/Lua.runtime.special"
1574+
},
1575+
"unicodeName": {
1576+
"$ref": "#/properties/Lua.runtime.unicodeName"
1577+
},
1578+
"version": {
1579+
"$ref": "#/properties/Lua.runtime.version"
1580+
}
1581+
}
1582+
},
14411583
"Lua.runtime.builtin": {
14421584
"markdownDescription": "调整内置库的启用状态,你可以根据实际运行环境禁用掉不存在的库(或重新定义)。\n\n* `default`: 表示库会根据运行版本启用或禁用\n* `enable`: 总是启用\n* `disable`: 总是禁用\n",
14431585
"properties": {
@@ -1702,12 +1844,26 @@
17021844
"scope": "resource",
17031845
"type": "string"
17041846
},
1847+
"Lua.signatureHelp": {
1848+
"properties": {
1849+
"enable": {
1850+
"$ref": "#/properties/Lua.signatureHelp.enable"
1851+
}
1852+
}
1853+
},
17051854
"Lua.signatureHelp.enable": {
17061855
"default": true,
17071856
"markdownDescription": "启用参数提示。",
17081857
"scope": "resource",
17091858
"type": "boolean"
17101859
},
1860+
"Lua.telemetry": {
1861+
"properties": {
1862+
"enable": {
1863+
"$ref": "#/properties/Lua.telemetry.enable"
1864+
}
1865+
}
1866+
},
17111867
"Lua.telemetry.enable": {
17121868
"default": null,
17131869
"markdownDescription": "启用遥测,通过网络发送你的编辑器信息与错误日志。在[此处](https://github.com/sumneko/lua-language-server/wiki/%E9%9A%90%E7%A7%81%E5%A3%B0%E6%98%8E)阅读我们的隐私声明。\n",
@@ -1717,6 +1873,16 @@
17171873
"null"
17181874
]
17191875
},
1876+
"Lua.window": {
1877+
"properties": {
1878+
"progressBar": {
1879+
"$ref": "#/properties/Lua.window.progressBar"
1880+
},
1881+
"statusBar": {
1882+
"$ref": "#/properties/Lua.window.statusBar"
1883+
}
1884+
}
1885+
},
17201886
"Lua.window.progressBar": {
17211887
"default": true,
17221888
"markdownDescription": "在状态栏显示进度条。",
@@ -1729,6 +1895,34 @@
17291895
"scope": "resource",
17301896
"type": "boolean"
17311897
},
1898+
"Lua.workspace": {
1899+
"properties": {
1900+
"checkThirdParty": {
1901+
"$ref": "#/properties/Lua.workspace.checkThirdParty"
1902+
},
1903+
"ignoreDir": {
1904+
"$ref": "#/properties/Lua.workspace.ignoreDir"
1905+
},
1906+
"ignoreSubmodules": {
1907+
"$ref": "#/properties/Lua.workspace.ignoreSubmodules"
1908+
},
1909+
"library": {
1910+
"$ref": "#/properties/Lua.workspace.library"
1911+
},
1912+
"maxPreload": {
1913+
"$ref": "#/properties/Lua.workspace.maxPreload"
1914+
},
1915+
"preloadFileSize": {
1916+
"$ref": "#/properties/Lua.workspace.preloadFileSize"
1917+
},
1918+
"useGitIgnore": {
1919+
"$ref": "#/properties/Lua.workspace.useGitIgnore"
1920+
},
1921+
"userThirdParty": {
1922+
"$ref": "#/properties/Lua.workspace.userThirdParty"
1923+
}
1924+
}
1925+
},
17321926
"Lua.workspace.checkThirdParty": {
17331927
"default": true,
17341928
"markdownDescription": "自动检测与适配第三方库,目前支持的库为:\n\n* OpenResty\n* Cocos4.0\n* LÖVE\n* Jass\n",

0 commit comments

Comments
 (0)