Scripts work under pwsh on Linux and macOS

Home, VS Code user folder and CLI are resolved per platform (with
VSCODE_USER_DIR as an override); dev-link makes a symlink where a
junction is not available.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0169iPWwKHZoBTNN9qwXiwqk
This commit is contained in:
max
2026-09-08 19:30:43 +02:00
co-authored by Claude Fable 5.1
parent 196513e30c
commit 9085266dd3
4 changed files with 62 additions and 14 deletions
+2 -2
View File
@@ -35,11 +35,11 @@ $ErrorActionPreference = 'Stop'
. (Join-Path $PSScriptRoot 'common.ps1')
$repoUser = Join-Path (Get-RepoRoot) 'User'
$codeUser = Join-Path $env:APPDATA 'Code\User'
$codeUser = Get-CodeUserDir
if (-not (Test-Path $codeUser)) {
throw ("VS Code's user folder was not found at $codeUser. If you use Insiders or a " +
"portable install, point APPDATA at it or copy by hand.")
"portable install, set VSCODE_USER_DIR to it or copy by hand.")
}
# Only the things worth version-controlling. Everything else in User/ is state: