microsoft / microsoft/vscode

PowerShell terminal discovery ignores custom Scoop installation root

Open
#332,672 0 comments 0 reactions 1 assignee Claimed by @anthonykim1 View on GitHub
Dominant language
TypeScript
Stars
193k
Forks
42.4k
PR merge metrics
PR metrics pending

Description

Type: Bug

Steps to reproduce:

1. Install Scoop into a custom directory, for example D:\TOOL\scoop.
2. Install PowerShell with `scoop install pwsh`.
3. Confirm `$env:SCOOP\apps\pwsh\current\pwsh.exe` exists.
4. Open "Terminal: Select Default Profile" in VS Code.

Expected:
"PowerShell (Scoop)" is detected.

Actual:
VS Code only checks `%USERPROFILE%\scoop` and ignores the `SCOOP`
environment variable.

Code:
src/vs/base/node/powershell.ts:229
``` ts
function findPSCoreScoopInstallation(): IPossiblePowerShellExe {
const scoopAppsDir = path.join(os.homedir(), 'scoop', 'apps');
const scoopPwsh = path.join(scoopAppsDir, 'pwsh', 'current', 'pwsh.exe');

return new PossiblePowerShellExe(scoopPwsh, 'PowerShell (Scoop)');
}
```

VS Code version: Code 1.134.0 (110a328ea54b42367b803ec53ee0bf52ef26b419, 2026-08-18T18:24:44Z)
OS version: Windows_NT x64 10.0.26200
Modes:

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.