Skip to content

Commit

Permalink
Merge pull request #592 from TheJumpCloud/CUT-4226_contrib_to_support
Browse files Browse the repository at this point in the history
VSCode extensions & settings
  • Loading branch information
jworkmanjc authored Jul 29, 2024
2 parents d92be18 + b031608 commit 351806d
Show file tree
Hide file tree
Showing 4 changed files with 91 additions and 7 deletions.
17 changes: 17 additions & 0 deletions .vscode/cspell.json
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": []
}
2 changes: 2 additions & 0 deletions .vscode/custom-words.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
JCAPIKEY
JCORGID
3 changes: 3 additions & 0 deletions .vscode/extensions.json
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"]
}
76 changes: 69 additions & 7 deletions .vscode/settings.json
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",
}

0 comments on commit 351806d

Please sign in to comment.