summaryrefslogtreecommitdiff
path: root/package.json
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-01-02 15:49:31 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-01-02 15:49:31 +0800
commit530114a0ed51bc2f8cccdc8cbf77fa5a418c1f1d (patch)
tree711e3ba252f03288ebb62525b70815517e77355b /package.json
parent09a88a27fa3864c22fae842725c9f625cd4c766c (diff)
downloadlua-language-server-530114a0ed51bc2f8cccdc8cbf77fa5a418c1f1d.zip
加几个配置
Diffstat (limited to 'package.json')
-rw-r--r--package.json30
1 files changed, 29 insertions, 1 deletions
diff --git a/package.json b/package.json
index 5b04a004..0ed959fc 100644
--- a/package.json
+++ b/package.json
@@ -28,7 +28,35 @@
"onLanguage:lua"
],
"main": "./client/out/extension",
- "contributes": {},
+ "contributes": {
+ "configuration": {
+ "type": "object",
+ "title": "Lua",
+ "properties": {
+ "LuaLanguageServer.diagnostics.postSpcae": {
+ "scope": "resource",
+ "type": "boolean",
+ "default": true,
+ "description": "Check post spaces.\n检查后置空格。"
+ },
+ "LuaLanguageServer.diagnostics.spaceOnlyLine": {
+ "scope": "resource",
+ "type": "boolean",
+ "default": true,
+ "description": "Check space-only lines.\n检查只有空格的行。"
+ },
+ "LuaLanguageServer.diagnostics.globals": {
+ "scope": "resource",
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "default": [],
+ "description": "Defined global variables.\n已定义的全局变量。"
+ }
+ }
+ }
+ },
"scripts": {
"vscode:prepublish": "cd client && npm run update-vscode && cd .."
}