diff --git a/reid-lsp/language-configuration.json b/reid-lsp/language-configuration.json new file mode 100644 index 0000000..9ca3e8f --- /dev/null +++ b/reid-lsp/language-configuration.json @@ -0,0 +1,78 @@ +{ + "comments": { + "lineComment": "//", + }, + "brackets": [ + [ + "{", + "}" + ], + [ + "[", + "]" + ], + [ + "(", + ")" + ] + ], + "autoClosingPairs": [ + { + "open": "{", + "close": "}" + }, + { + "open": "[", + "close": "]" + }, + { + "open": "(", + "close": ")" + }, + { + "open": "'", + "close": "'", + "notIn": [ + "string", + "comment" + ] + }, + { + "open": "\"", + "close": "\"", + "notIn": [ + "string" + ] + }, + ], + "autoCloseBefore": ";:.,=}])>` \n\t", + "surroundingPairs": [ + [ + "{", + "}" + ], + [ + "[", + "]" + ], + [ + "(", + ")" + ], + [ + "\"", + "\"" + ], + ], + "folding": { + "markers": { + "start": "^\\s*//\\s*#?region\\b", + "end": "^\\s*//\\s*#?endregion\\b" + } + }, + "wordPattern": "[a-Z](\\w*)", + "indentationRules": { + "increaseIndentPattern": "^((?!\\/\\/).)*(\\{[^}\"'`]*|\\([^)\"'`]*|\\[[^\\]\"'`]*)$", + "decreaseIndentPattern": "^((?!.*?\\/\\*).*\\*/)?\\s*[\\)\\}\\]].*$" + } +} \ No newline at end of file diff --git a/reid-lsp/package.json b/reid-lsp/package.json index dea5a57..424451b 100644 --- a/reid-lsp/package.json +++ b/reid-lsp/package.json @@ -12,9 +12,6 @@ "categories": [ "Other" ], - "activationEvents": [ - "onLanguage:reid" - ], "main": "./dist/extension.js", "contributes": { "languages": [ @@ -25,7 +22,8 @@ ], "aliases": [ "Reid" - ] + ], + "configuration": "./language-configuration.json" } ], "configuration": {