summaryrefslogtreecommitdiff
path: root/package.nls.json
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-06-24 14:45:29 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-06-24 14:45:29 +0800
commit68e04f690d1accf41f8a59b497bb8fb2222ecc02 (patch)
tree3fab69b1fee8b4b180bc54999f824683ba8086b2 /package.nls.json
parent221b378fa69132808a5d396b777866338cbe65a0 (diff)
downloadlua-language-server-68e04f690d1accf41f8a59b497bb8fb2222ecc02.zip
配置加点例子
Diffstat (limited to 'package.nls.json')
-rw-r--r--package.nls.json8
1 files changed, 4 insertions, 4 deletions
diff --git a/package.nls.json b/package.nls.json
index 0ff7f335..2fc65bcf 100644
--- a/package.nls.json
+++ b/package.nls.json
@@ -1,10 +1,10 @@
{
- "config.diagnostics.disable": "Disabled diagnostic (Use code in hover brackets).",
- "config.diagnostics.globals": "Defined global variables.",
- "config.diagnostics.severity": "Modified diagnostic severity.",
+ "config.diagnostics.disable": "Disabled diagnostic (Use code in hover brackets).\n```json\n\"Lua.diagnostics.disable\" : [\n \"unused-local\",\n \"lowercase-global\"\n]\n```\n",
+ "config.diagnostics.globals": "Defined global variables.\n```json\n\"Lua.diagnostics.globals\" : [\n \"GLOBAL1\",\n \"GLOBAL2\"\n]\n```\n",
+ "config.diagnostics.severity": "Modified diagnostic severity.\n```json\n\"Lua.diagnostics.severity\" : {\n \"redefined-local\" : \"Warning\",\n \"emmy-lua\" : \"Hint\"\n}\n```\n",
"config.runtime.path": "`package.path`",
"config.runtime.version": "Lua runtime version.",
- "config.workspace.ignoreDir": "Ignored directories (Use `.gitignore` grammar).",
+ "config.workspace.ignoreDir": "Ignored directories (Use `.gitignore` grammar).\n```json\n\"Lua.workspace.ignoreDir\" : [\n \"temp/*.*\",\n \"!temp/*.lua\"\n]\n```\n",
"config.workspace.ignoreSubmodules": "Ignore submodules.",
"config.workspace.library": "加载的外部函数库。\n下面这个例子表示加载`C:/lua`中的所有文件,以及加载`../lib`中的`.txt`与`.lua`文件,但不加载`../lib/temp`中的`.txt`文件。加载的文件最终会受文件关联的影响,因此需要设置`.txt`文件关联`lua`后`*.txt`才有意义。\n```json\n\"Lua.workspace.library\": {\n \"C:/lua\": true,\n \"../lib\": [\n \"*.txt\",\n \"*.lua\",\n \"!/temp/**/*.txt\"\n ]\n}\n```\n",
"config.workspace.maxPreload": "Max preloaded files.",