refactor-reset-revert #1

Merged
floppydiscen merged 61 commits from refactor-reset-revert into main 2026-01-15 16:32:20 +00:00
Showing only changes of commit 734b49bc7d - Show all commits

View File

@@ -258,6 +258,7 @@ $results = @{
Git = $false
VSCode = $false
VSCodeExtensions = $false
VSCodePowerShellIntegration = $null # null = not asked, true = configured, false = skipped/failed
Python = $null # null = not attempted, true = success, false = failed
WindowsTerminal = $null
}
@@ -313,6 +314,14 @@ function Install-VSCodeExtension {
}
function Set-VSCodePowerShellIntegration {
# Ask user if they want to set PowerShell 7 as default terminal
$setAsDefault = Get-UserConfirmation "Set PowerShell 7 as the default terminal in VSCode? (Recommended for this workshop)"
if (-not $setAsDefault) {
Write-Host " Skipping PowerShell 7 terminal configuration." -ForegroundColor Gray
return $false
}
Write-Host " Configuring PowerShell 7 integration with VSCode..." -ForegroundColor Cyan
try {
@@ -415,8 +424,9 @@ if ($results.VSCode) {
# Configure PowerShell 7 integration
# Configure PowerShell 7 integration (optional but recommended)
$powershellIntegrationResult = Set-VSCodePowerShellIntegration
$results.VSCodePowerShellIntegration = $powershellIntegrationResult
$results.VSCodeExtensions = $powershellExtensionResult
}
@@ -491,11 +501,17 @@ if ($results.VSCode) {
if ($results.VSCodeExtensions) {
Write-Success " • PowerShell extension"
Write-Success " • PowerShell 7 terminal integration"
}
else {
Write-Warning " • VSCode PowerShell extension may need manual installation"
}
if ($results.VSCodePowerShellIntegration -eq $true) {
Write-Success " • PowerShell 7 terminal integration"
}
elseif ($results.VSCodePowerShellIntegration -eq $false) {
Write-Host " • PowerShell 7 terminal integration: Skipped" -ForegroundColor Gray
}
}
else {
Write-Error "Visual Studio Code - Installation failed or needs restart"