Skip to content

Commit

Permalink
update vscode and project settings
Browse files Browse the repository at this point in the history
  • Loading branch information
metablaster committed Apr 29, 2024
1 parent b7f7bb0 commit 54a7065
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 14 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": 671,
"line": 682,
"column": 1,
"label": ""
},
{
"line": 723,
"line": 735,
"column": 1,
"label": ""
},
{
"line": 755,
"line": 767,
"column": 1,
"label": ""
},
{
"line": 1021,
"line": 1033,
"column": 1,
"label": ""
}
Expand Down
22 changes: 17 additions & 5 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{
// VSCode: File specific settings
"[markdown]": {
// Word wrapping must be explicity set for markdown
// Word wrapping must be explicitly set for markdown
// see: https://github.com/microsoft/vscode/issues/72559
"editor.wordWrap": "off",
// Markdown standard is 2 spaces for indentation
Expand All @@ -28,7 +28,7 @@
"editor.formatOnPaste": false,
"editor.formatOnSave": false,
"editor.formatOnType": false,
"editor.trimAutoWhitespace": false,
"editor.trimAutoWhitespace": false
},
"[ansi]": {
// BUG: Working in diffeditor but not in normal editor
Expand All @@ -47,13 +47,16 @@
// YAML extension
"editor.defaultFormatter": "redhat.vscode-yaml"
},
// VSCode: audio cues
// VSCode: Accessibility
"accessibility.signals.lineHasError": {
"sound": "off"
},
"accessibility.signals.lineHasWarning": {
"sound": "off"
},
"accessibility.signals.terminalBell": {
"sound": "off"
},
// VSCode: diffeditor
"diffEditor.ignoreTrimWhitespace": false,
// NOTE: "inherit" does not work for all file formats
Expand Down Expand Up @@ -254,6 +257,13 @@
"scope": "user",
"addWords": true
},
"dic.extensions": {
"name": "extensions",
"path": "~/dev/GitHub/devdict/Development/extensions.dic",
"description": "Dictionary of VSCode extension identifiers",
"scope": "user",
"addWords": true
},
"dic.powershell": {
"name": "powershell",
"path": "~/dev/GitHub/devdict/Development/powershell.dic",
Expand Down Expand Up @@ -434,6 +444,7 @@
"filetypes": true,
"cpp": true,
"development": true,
"extensions": true,
"powershell": true,
"windowsdev": true,
"networking": true,
Expand Down Expand Up @@ -716,7 +727,8 @@
// PowerShell: integrated console version
// NOTE: Run in command palette "PowerShell: Show Session Menu" to list available sessions to set here
// To configure some other shell use "powershell.powerShellAdditionalExePaths": { "name": "path" }
"powershell.powerShellDefaultVersion": "PowerShell (x64)",
"powershell.powerShellDefaultVersion": "PowerShell", // Linux
//"powershell.powerShellDefaultVersion": "PowerShell (x64)", // Windows
// Extension: Rainbow CSV
"rainbow_csv.csv_lint_detect_trailing_spaces": true,
"rainbow_csv.enable_auto_csv_lint": true,
Expand Down Expand Up @@ -975,7 +987,7 @@
// https://www.google.com/schemas/sitemap/0.84/
"systemId": "https://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd",
"pattern": "**/*sitemap.xml"
},
}
// NOTE: Not possible to use PlatyPS schema because:
// The schema files are stored in $PSHOME/Schemas/PSMaml.
// The MAML format is made up of multiple schemas.
Expand Down
10 changes: 5 additions & 5 deletions Config/ProjectSettings.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,7 @@ if (!(Get-Variable -Name CheckConstantVariables -Scope Global -ErrorAction Ignor

# Recommended minimum PowerShell Core
# NOTE: 6.1.0 will not work, but 7.0.3 works, verify with PSUseCompatibleCmdlets
New-Variable -Name RequirePSVersion -Scope Global -Option Constant -Value ([version]::new(7, 4, 1))
New-Variable -Name RequirePSVersion -Scope Global -Option Constant -Value ([version]::new(7, 4, 2))
}
else
{
Expand Down Expand Up @@ -776,7 +776,7 @@ if (!(Get-Variable -Name CheckConstantVariables -Scope Global -ErrorAction Ignor
# Required minimum PSScriptAnalyzer version for code editing, do not decrement!
# PSScriptAnalyzer >= 1.19.1 is minimum required otherwise code will start missing while editing probably due to analyzer settings
# https://github.com/PowerShell/PSScriptAnalyzer#requirements
New-Variable -Name RequireAnalyzerVersion -Scope Global -Option Constant -Value ([version]::new(1, 21, 0))
New-Variable -Name RequireAnalyzerVersion -Scope Global -Option Constant -Value ([version]::new(1, 22, 0))

# Recommended minimum posh-git version for git in PowerShell
# NOTE: pre-release minimum 1.0.0-beta4 will be installed
Expand All @@ -799,14 +799,14 @@ if (!(Get-Variable -Name CheckConstantVariables -Scope Global -ErrorAction Ignor

# Recommended minimum PSReadline version for command line editing experience of PowerShell
# Needs the 1.6.0 or a higher version of PowerShellGet to install the latest prerelease version of PSReadLine
New-Variable -Name RequirePSReadlineVersion -Scope Global -Option Constant -Value ([version]::new(2, 3, 4))
New-Variable -Name RequirePSReadlineVersion -Scope Global -Option Constant -Value ([version]::new(2, 3, 5))
}

if ($Develop -or ($ProjectCheck -and $ModulesCheck))
{
# Recommended minimum Git version needed for contributing and required by posh-git
# https://github.com/dahlbyk/posh-git#prerequisites
New-Variable -Name RequireGitVersion -Scope Global -Option Constant -Value ([version]::new(2, 43, 0))
New-Variable -Name RequireGitVersion -Scope Global -Option Constant -Value ([version]::new(2, 44, 0))
}

if ($Develop)
Expand All @@ -823,7 +823,7 @@ if (!(Get-Variable -Name CheckConstantVariables -Scope Global -ErrorAction Ignor
New-Variable -Name RequireNETVersion -Scope Global -Option Constant -Value ([version]::new(4, 5, 0))

# Recommended minimum VSCode version, do not decrement!
New-Variable -Name RequireVSCodeVersion -Scope Global -Option Constant -Value ([version]::new(1, 85, 2))
New-Variable -Name RequireVSCodeVersion -Scope Global -Option Constant -Value ([version]::new(1, 88, 1))

# Firewall logs folder
# NOTE: Set this value to $LogsFolder\Firewall to enable reading logs in VSCode with syntax highlighting
Expand Down

0 comments on commit 54a7065

Please sign in to comment.