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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user