Skip to content

Support for VSCode variables and arguments when defining Additional Exe Paths #5205

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
2 tasks done
cos4ni2s opened this issue May 25, 2025 · 2 comments
Open
2 tasks done
Labels
Issue-Enhancement A feature request (enhancement).

Comments

@cos4ni2s
Copy link

Prerequisites

  • I have written a descriptive issue title.
  • I have searched all issues to ensure it has not already been reported.

Summary

The PowerShell Additional Exe Paths setting only accept absolute path. This feature request is about getting that setting to resolve vscode's predefined variables and to accept arguments such as -NoLogo, -NoExit, and -Command.

Proposed Design

No response

@cos4ni2s cos4ni2s added Issue-Enhancement A feature request (enhancement). Needs: Triage Maintainer attention needed! labels May 25, 2025
@JustinGrote
Copy link
Collaborator

The variables in path is reasonable but not sure if the API allows us to implement it. The problem with the arguments at least for the PowerShell extension terminal is that we require certain arguments that are non-negotiable. If you just want a terminal with these, you can do that by using terminal profiles.

@JustinGrote JustinGrote removed the Needs: Triage Maintainer attention needed! label May 27, 2025
@cos4ni2s
Copy link
Author

The variables in path is reasonable but not sure if the API allows us to implement it. The problem with the arguments at least for the PowerShell extension terminal is that we require certain arguments that are non-negotiable. If you just want a terminal with these, you can do that by using terminal profiles.

I have already setup a custom PowerShell terminal profile with my desired arguments including variables:

"terminal.integrated.profiles.windows": {
	"PowerShell": {
		"overrideName": true,
		"icon": "terminal-powershell",
		"path": "${env:GROVE}${/}PowerShell${/}Version-7.5.1${/}pwsh.exe",
		"args": ["-NoLogo", "-NoExit", "-Command", ". ([System.IO.Path]::GetFullPath(\"$PSHOME${/}..${/}PowerShell.ps1\"))"]
	},
}

What I'm aiming for is to replicate that custom terminal in the powershell.powerShellAdditionalExePaths setting ideally as follows:

"powershell.powerShellAdditionalExePaths": {
	"PowerShell": "${config:terminal.integrated.profiles.windows.PowerShell}"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Enhancement A feature request (enhancement).
Projects
None yet
Development

No branches or pull requests

2 participants