Skip to content

Commit dee5591

Browse files
committed
Temporarily allow non-terminating errors during dependency installation, build, and extension installation
├── README.md ├── install.ps1 └── install.sh
1 parent aa86b50 commit dee5591

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎install.ps1‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,13 @@ git clone -c core.longpaths=true -q --depth 1 https://github.com/robertpiosik/Co
7676
Push-Location $tmpDir
7777

7878
Write-Host "Installing dependencies..."
79+
$ErrorActionPreference = "Continue"
7980
npx.cmd --yes pnpm install *>$null
8081

8182
Write-Host "Building extension..."
8283
Set-Location apps/editor
8384
npx.cmd --yes pnpm run build *>$null
85+
$ErrorActionPreference = "Stop"
8486

8587
$vsixFile = Get-ChildItem *.vsix | Select-Object -First 1
8688

@@ -94,7 +96,9 @@ if (!$vsixFile) {
9496
function Install-ToEditor($idx) {
9597
$editorName = $availableEditors[$idx]
9698
$editorCmd = $editorCmds[$idx]
99+
$ErrorActionPreference = "Continue"
97100
& $editorCmd --install-extension $vsixFile.FullName --force *>$null
101+
$ErrorActionPreference = "Stop"
98102
Write-Host "Successfully installed to $editorName!"
99103
}
100104

0 commit comments

Comments
 (0)