diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-01-02 15:49:31 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-01-02 15:49:31 +0800 |
commit | 530114a0ed51bc2f8cccdc8cbf77fa5a418c1f1d (patch) | |
tree | 711e3ba252f03288ebb62525b70815517e77355b /package.json | |
parent | 09a88a27fa3864c22fae842725c9f625cd4c766c (diff) | |
download | lua-language-server-530114a0ed51bc2f8cccdc8cbf77fa5a418c1f1d.zip |
加几个配置
Diffstat (limited to 'package.json')
-rw-r--r-- | package.json | 30 |
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 .." } |