You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support ${workspaceFolder} variable / workspace-relative paths in psalm.phpExecutablePath and psalm.psalmScriptPath #294
${workspaceFolder}/.vscode/dev-container-proxy.sh fails - the string is passed verbatim, so the check looks for a literal ${workspaceFolder} directory.
.vscode/dev-container-proxy.sh fails - relative paths are resolved against the VS Code process cwd, not the workspace root, so access(…, X_OK) reports "is not executable".
Only an absolute path works today, which is a problem for teams that commit .vscode/settings.json to the repo - every developer has a different absolute path. My use case is a proxy script (.vscode/dev-container-proxy.sh) that forwards php into a Docker container so that the Psalm language server runs with the same PHP version and Composer lockfile as CI. Other common cases: monorepos, devcontainers, Nix/direnv setups.
Reproduction
In a workspace, create .vscode/php-proxy.sh and chmod +x it.
Expand ${workspaceFolder} (and ideally other standard VS Code variables like ${workspaceFolder:name}, ${env:VAR}, ${userHome}) — consistent with how most VS Code extensions behave (e.g. php.executablePath, phpstan.binCommand in phpstan-vscode).
Resolve relative paths against workspace.workspaceFolders[0].uri.fsPath, not the VS Code process cwd.
Suggested fix
A small helper applied to both settings before fs.access:
Activity