Skip to content

Commit

Permalink
revisite and update settings
Browse files Browse the repository at this point in the history
  • Loading branch information
metablaster committed Feb 7, 2024
1 parent 78749ac commit 7ac8f24
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 35 deletions.
8 changes: 4 additions & 4 deletions .vscode/bookmarks.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,22 @@
"path": ".vscode/settings.json",
"bookmarks": [
{
"line": 506,
"line": 504,
"column": 1,
"label": ""
},
{
"line": 558,
"line": 556,
"column": 1,
"label": ""
},
{
"line": 590,
"line": 587,
"column": 1,
"label": ""
},
{
"line": 858,
"line": 854,
"column": 1,
"label": ""
}
Expand Down
15 changes: 7 additions & 8 deletions .vscode/cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,14 @@
"enabled": true,
// "checkOnlyEnabledFileTypes" (in settings)
"enableFiletypes": [
// TODO: publish.sh in Actions not spellchecked
"json",
"jsonc",
"ignore",
"properties", // gitattributes
"properties", // gitattributes, *.conf, config
"log",
"csv (semicolon)", // exported rules
"ini", // mTail configuration
"csharp", // Source code for DLL's
"yaml", // GitHub actions
"html", // In docs folder
"ssh_config", // Remote-SSH configuration
"javascript" // In Actions - publish sitemap
"ssh_config" // Remote-SSH configuration, config
],
// BUG: Does not work, but ${workspaceFolder} is the default anyway
//"globRoot": "${workspaceFolder}",
Expand All @@ -44,7 +39,11 @@
"markdown",
"plaintext",
"powershell",
"xml"
"xml",
"csharp", // Source code for DLL's
"yaml", // GitHub actions
"html", // In docs folder
"javascript" // In Actions - publish sitemap
],
// "blockCheckingWhenAverageChunkSizeGreaterThan" (in settings)
// "blockCheckingWhenLineLengthGreaterThan": (in settings)
Expand Down
40 changes: 18 additions & 22 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
// Markdown All in One (yzhang.markdown-all-in-one) formats lists, tables and TOC
// markdownlint (DavidAnson.vscode-markdownlint) formats only certain violations
// Therefore use right click -> Format Document With...
// NOTE: markdown-all-in-one formatting will work only with newly created lists, tables and TOC
"editor.defaultFormatter": "yzhang.markdown-all-in-one"
},
"[powershell]": {
Expand Down Expand Up @@ -141,7 +142,7 @@
"*PssaTest.Module*": "unittest",
"*.test": "unittest",
"*.ansi": "ansi",
"config": "ssh_config",
"config": "properties",
"LICENSE": "plaintext",
"sshd_config": "ssh_config"
},
Expand Down Expand Up @@ -170,9 +171,6 @@
// VSCode: outline
"outline.collapseItems": "alwaysCollapse",
// VSCode: workbench
// TODO: What is a new option, needed for autogenrated files
// seems to be user only option?
"workbench.action.files.saveWithoutFormatting": [],
"workbench.colorCustomizations": {
"tab.activeBorder": "#ff0000"
},
Expand All @@ -195,14 +193,21 @@
"bookmarks.sideBar.expanded": true,
"bookmarks.wrapNavigation": true,
// Extension: Code Spell Checker
// CAUTION: Settings for cSpell defined in settings.json are not recognized in cspell.json
// WARN: Settings for cSpell defined in settings.json are not recognized in cspell.json
"cSpell.autoFormatConfigFile": false,
"cSpell.blockCheckingWhenAverageChunkSizeGreaterThan": 120,
"cSpell.blockCheckingWhenLineLengthGreaterThan": 10000,
"cSpell.blockCheckingWhenTextChunkSizeGreaterThan": 500,
"cSpell.checkLimit": 500,
"cSpell.checkOnlyEnabledFileTypes": true,
"cSpell.customDictionaries": {
"dic.foul": {
"description": "Spellcheck rude words which to mark as forbidden",
"name": "foul",
"path": "${workspaceRoot}/Config/cSpell/foul/foul.dic",
"scope": "workspace",
"addWords": false
},
"dic.commands": {
"description": "Spellcheck words related to command line commands and arguments",
"name": "commands",
Expand Down Expand Up @@ -231,13 +236,6 @@
"scope": "workspace",
"addWords": true
},
"dic.foul": {
"description": "Spellcheck rude words which to mark as forbidden",
"name": "foul",
"path": "${workspaceRoot}/Config/cSpell/foul/foul.dic",
"scope": "workspace",
"addWords": true
},
"dic.identifiers": {
"description": "Spellcheck words for Windows store apps and VSCode extension identifiers",
"name": "identifiers",
Expand Down Expand Up @@ -288,11 +286,11 @@
"addWords": true
},
// Enable\disable specific custom dictionaries:
"foul": true,
"commands": true,
"computer": true,
"development": true,
"firewall": true,
"foul": true,
"identifiers": true,
"names": true,
"programs": true,
Expand All @@ -305,7 +303,7 @@
"cSpell.diagnosticLevel": "Information",
"cSpell.enabled": true,
"cSpell.showAutocompleteSuggestions": true,
// CAUTION: Needs to be set in user settings
// WARN: Needs to be set in user settings
// "cSpell.showCommandsInEditorContextMenu": true,
// "cSpell.showStatus": true,
// "cSpell.showStatusAlignment": "Right",
Expand All @@ -314,7 +312,7 @@
"cSpell.spellCheckOnlyWorkspaceFiles": true,
"cSpell.suggestionMenuType": "quickPick",
// Extension: Filter Line
// CAUTION: Needs to be set in user settings
// WARN: Needs to be set in user settings
// "filter-line.historySize": 20,
// Extension: Highlight Bad Chars
"highlight-bad-chars.additionalUnicodeChars": [
Expand Down Expand Up @@ -497,7 +495,7 @@
"powershell.analyzeOpenDocumentsOnly": false,
"powershell.buttons.showPanelMovementButtons": false,
"powershell.buttons.showRunButtons": true,
// CAUTION: Setting this to true requires test scripts to implement removing created PS sessions.
// WARN: Setting this to true requires test scripts to implement removing created PS sessions.
// TODO: One possibility is to set "ProjectCheck" variable to true in Config\ProjectSettings.ps1
// and instruct unit tests to remove old PS sessions with Disconnect-Computer if ProjectCheck is true.
"powershell.debugging.createTemporaryIntegratedConsole": false,
Expand Down Expand Up @@ -587,7 +585,6 @@
"todo-tree.filtering.includeHiddenFiles": false,
"todo-tree.filtering.useBuiltInExcludes": "file and search excludes",
"todo-tree.general.debug": false,
"todo-tree.general.enableFileWatcher": false,
"todo-tree.general.revealBehaviour": "start of todo",
"todo-tree.general.rootFolder": "${workspaceFolder}",
"todo-tree.general.showActivityBarBadge": false,
Expand All @@ -603,7 +600,7 @@
"FIX",
"MSDN",
"DOCS",
"CAUTION",
"WARN",
"ISSUE",
"cSpell",
"[ ]",
Expand Down Expand Up @@ -705,7 +702,7 @@
"opacity": 65
},
// Warning to developer
"CAUTION": {
"WARN": {
"icon": "alert",
"type": "tag",
"foreground": "#ffffff",
Expand Down Expand Up @@ -794,7 +791,7 @@
"\""
],
// Extension: Trailing Spaces
// CAUTION: Enabling this causes issues writing code according to indentation rules
// WARN: Enabling this causes issues writing code according to indentation rules
"trailing-spaces.trimOnSave": false,
//Extension: XML
// NOTE: Configure telemetry if you wish in user settings
Expand Down Expand Up @@ -840,7 +837,6 @@
"xml.format.emptyElements": "expand",
"xml.format.enabled": true,
"xml.format.enforceQuoteStyle": "preferred",
"xml.format.experimental": false,
"xml.format.grammarAwareFormatting": true,
"xml.format.joinCDATALines": false,
"xml.format.joinCommentLines": false,
Expand All @@ -862,7 +858,7 @@
// "redhat.telemetry.enabled": false,
// NOTE: If desired, it must be configured in user settings
// "xml.server.binary.trustedHashes": [],
// CAUTION: For XML extension to work it must be allowed internet access, there is rule in Rules\VSCode.ps1
// WARN: For XML extension to work it must be allowed internet access, there is rule in Rules\VSCode.ps1
"xml.server.preferBinary": true,
"xml.server.silenceExtensionWarning": false,
"xml.symbols.enabled": true,
Expand Down
2 changes: 1 addition & 1 deletion Modules/Ruleset.Remote/Ruleset.Remote.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ New-Variable -Name RemoteFirewallSession -Scope Script -Option Constant -Value "
# PS edition specific local session, do not modify!
New-Variable -Name LocalFirewallSession -Scope Script -Option Constant -Value "LocalFirewall.$($PSVersionTable.PSEdition)"

# CAUTION: These functions are too verbose, disabling to be able use -Verbose on user code
# WARN: These functions are too verbose, disabling to be able use -Verbose on user code
$PSDefaultParameterValues["Get-PSSessionConfiguration:Verbose"] = $false
$PSDefaultParameterValues["Unregister-PSSessionConfiguration:Verbose"] = $false
$PSDefaultParameterValues["Register-PSSessionConfiguration:Verbose"] = $false
Expand Down

0 comments on commit 7ac8f24

Please sign in to comment.