-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #592 from TheJumpCloud/CUT-4226_contrib_to_support
VSCode extensions & settings
- Loading branch information
Showing
4 changed files
with
91 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"version": "0.2", | ||
"ignorePaths": [], | ||
"dictionaryDefinitions": [{ | ||
// The name of the dictionary is used to look it up. | ||
"name": "custom-words", | ||
// Path to the custom word file. Relative to this `cspell.json` file. | ||
"path": "./custom-words.txt", | ||
// Some editor extensions will use `addWords` for adding words to your | ||
// personal dictionary. | ||
"addWords": true | ||
}], | ||
"dictionaries": ["custom-words"], | ||
"words": [], | ||
"ignoreWords": [], | ||
"import": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
JCAPIKEY | ||
JCORGID |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"recommendations": ["streetsidesoftware.code-spell-checker", "ms-vscode.powershell", "esbenp.prettier-vscode", "jgclark.vscode-todo-highlight"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,71 @@ | ||
{ | ||
"spellright.language": ["en"], | ||
"spellright.documentTypes": ["markdown", "latex", "plaintext"], | ||
"editor.formatOnSave": true, | ||
"powershell.codeFormatting.preset": "OTBS", | ||
"powershell.scriptAnalysis.enable": true, | ||
"files.trimTrailingWhitespace": true, | ||
"powershell.scriptAnalysis.settingsPath": "PowerShell/JumpCloud Module/Tests/ModuleValidation/PSScriptAnalyzerSettings.psd1" | ||
"cSpell.language": "en", | ||
"cSpell.enabled": true, | ||
"cSpell.enableFiletypes": [ | ||
"latex", | ||
"markdown", | ||
"plaintext", | ||
"powershell" | ||
], | ||
// todo highlight settings: | ||
"todohighlight.isEnable": true, | ||
"todohighlight.isCaseSensitive": true, | ||
"todohighlight.maxFilesForSearch": 5120, | ||
"todohighlight.toggleURI": false, | ||
"todohighlight.enableDiagnostics":true, | ||
"todohighlight.keywords": [ | ||
"FIXME:", // without further details, this will use the defaultStyle | ||
"REVIEW:", // as will this | ||
// for additional information on highlights: https://github.com/jgclark/vscode-todo-highlight | ||
{ | ||
"text": "INFO:", // without a defined regex pattern this is the string that will be matched | ||
"diagnosticSeverity": "information", | ||
"color": "white", | ||
"backgroundColor": "#57C49F", // INFO: setting the last parameter to zero (alpha channel) disables the background colour | ||
"isWholeLine": false | ||
}, | ||
{ | ||
"text": "TODO(string):", // with a regex pattern defined, this setting isn't used, but is useful as a name for this section | ||
"regex": { | ||
"pattern": "(?<=^|\"|\\s)TODO(\\(\\w+\\))?:" // this allows for TODO: or TODO(Bob): etc. | ||
}, | ||
"diagnosticSeverity": "warning", | ||
"color": "white", | ||
"backgroundColor": "#1E8194" | ||
}, | ||
{ | ||
"text": "APIKEY:", // with a regex pattern defined, this setting isn't used, but is useful as a name for this section | ||
"color": "white", | ||
"backgroundColor": "#E06161", | ||
"regex": { | ||
"pattern": "jca_.{36}" | ||
}, | ||
"isWholeLine": false, | ||
"diagnosticSeverity": "error" | ||
} | ||
|
||
], | ||
"todohighlight.include": [ | ||
"**/*.js", | ||
"**/*.jsx", | ||
"**/*.ts", | ||
"**/*.tsx", | ||
"**/*.html", | ||
"**/*.css", | ||
"**/*.scss", | ||
"**/*.php", | ||
"**/*.rb", | ||
"**/*.txt", | ||
"**/*.mdown", | ||
"**/*.md", | ||
"**/*.ps1" | ||
], | ||
// file formatting & saving: | ||
"prettier.enable": true, | ||
"editor.formatOnSave": true, | ||
"files.trimTrailingWhitespace": true, | ||
// powershell settings | ||
"powershell.codeFormatting.preset": "OTBS", | ||
"powershell.scriptAnalysis.enable": true, | ||
"powershell.scriptAnalysis.settingsPath": "PowerShell/JumpCloud Module/Tests/ModuleValidation/PSScriptAnalyzerSettings.psd1", | ||
} |