diff options
-rw-r--r-- | package.json | 2 | ||||
-rw-r--r-- | package.nls.json | 3 | ||||
-rw-r--r-- | package.nls.zh-cn.json | 3 | ||||
-rw-r--r-- | server/build_package.lua | 4 |
4 files changed, 8 insertions, 4 deletions
diff --git a/package.json b/package.json index fcaa3a85..669137a2 100644 --- a/package.json +++ b/package.json @@ -346,7 +346,7 @@ }, "Lua.zzzzzz.cat": { "default": false, - "markdownDescription": "DO NOT TOUCH ME, LET ME SLEEP >_<", + "markdownDescription": "%config.zzzzzz.cat%", "scope": "resource", "type": "boolean" } diff --git a/package.nls.json b/package.nls.json index 6ddc588d..aced5074 100644 --- a/package.nls.json +++ b/package.nls.json @@ -12,5 +12,6 @@ "config.workspace.library": "Load external library.\nThis feature can load external Lua files, which can be used for definition, automatic completion and other functions. Note that the language server does not monitor changes in external files and needs to restart if the external files are modified.\nThe following example shows loaded files in `C:/lua` and `../lib` ,exclude `../lib/temp`.\n```json\n\"Lua.workspace.library\": {\n \"C:/lua\": true,\n \"../lib\": [\n \"temp/*\"\n ]\n}\n```\n", "config.workspace.maxPreload": "Max preloaded files.", "config.workspace.preloadFileSize": "Skip files larger than this value (KB) when preloading.", - "config.workspace.useGitIgnore": "Ignore files list in `.gitignore` ." + "config.workspace.useGitIgnore": "Ignore files list in `.gitignore` .", + "config.zzzzzz.cat": "DO NOT TOUCH ME, LET ME SLEEP >_<\n\n(This will enable beta version, which are still in the early stages of development, and all features will fail after enabling this setting.)" }
\ No newline at end of file diff --git a/package.nls.zh-cn.json b/package.nls.zh-cn.json index 153a3933..ad822077 100644 --- a/package.nls.zh-cn.json +++ b/package.nls.zh-cn.json @@ -12,5 +12,6 @@ "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", "config.workspace.maxPreload": "最大预加载文件数。", "config.workspace.preloadFileSize": "预加载时跳过大小大于该值(KB)的文件。", - "config.workspace.useGitIgnore": "忽略 `.gitignore` 中列举的文件。" + "config.workspace.useGitIgnore": "忽略 `.gitignore` 中列举的文件。", + "config.zzzzzz.cat": "DO NOT TOUCH ME, LET ME SLEEP >_<\n\n(这会启用还处于早期开发阶段的beta版,开启后所有的功能都会失效)" }
\ No newline at end of file diff --git a/server/build_package.lua b/server/build_package.lua index a16fb3af..4bc369d7 100644 --- a/server/build_package.lua +++ b/server/build_package.lua @@ -161,7 +161,7 @@ local package = { scope = "resource", type = "boolean", default = false, - markdownDescription = "DO NOT TOUCH ME, LET ME SLEEP >_<" + markdownDescription = "%config.zzzzzz.cat%" }, } }, @@ -263,6 +263,7 @@ The following example shows loaded files in `C:/lua` and `../lib` ,exclude `../l ]] .. example.library, ['config.completion.enable'] = 'Enable completion.', ['config.completion.callSnippet'] = 'Show function call snippets.', + ['config.zzzzzz.cat'] = 'DO NOT TOUCH ME, LET ME SLEEP >_<\n\n(This will enable beta version, which are still in the early stages of development, and all features will fail after enabling this setting.)', }) io.save(ROOT:parent_path() / 'package.nls.zh-cn.json', json.encode { @@ -284,4 +285,5 @@ io.save(ROOT:parent_path() / 'package.nls.zh-cn.json', json.encode { ]] .. example.library, ['config.completion.enable'] = '启用自动完成。', ['config.completion.callSnippet'] = '显示函数调用片段。', + ['config.zzzzzz.cat'] = 'DO NOT TOUCH ME, LET ME SLEEP >_<\n\n(这会启用还处于早期开发阶段的beta版,开启后所有的功能都会失效)', }) |