vscode: terminal.integrated.profiles.windows does not work with spaces in names anymore
Since one of the recent updates, VSCode does not accept my custom terminal profile anymore (for the Git Bash in this instance). This is what I had configured so far:
"terminal.integrated.defaultProfile.windows": "Git Bash",
"terminal.integrated.profiles.windows": {
"Git Bash": {
"path": "C:\\ProgramData\\scoop\\apps\\git-with-openssh\\current\\bin\\bash.exe"
},
"PowerShell": {
"source": "PowerShell"
}
},
See also https://github.com/microsoft/vscode/issues/123205#issuecomment-834045362
The profile does not work anymore though and within the settings editor VSCode laments “Value is not accepted”:
Has anything changed in the way how you define custom terminals in the recent updates?
Does this issue occur when all extensions are disabled?: Yes
- VS Code Version: 1.71.2
- OS Version: Windows 10 Pro x64, Version 10.0.19044 Build 19044
Steps to Reproduce:
- Create a custom terminal profile under
terminal.integrated.profiles.windows
with thepath
option. - Try to set this as your default profile (or test if you can start a terminal with this profile).
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 2
- Comments: 26 (10 by maintainers)
1.74.3 still no “Git Bash”
Yes, because if I change the name from
"Git Bash"
to"GitBash"
it works.It works now.
For repro: redefine
Git Bash
like this for example, and see if it appear in the list of terminal profiles. It has nothing to do with default terminal selection.A sort of similar problem now exists with the SFTP extension, where you can create SSH/SFTP profiles within
.vscode/sftp.json
with the following format:If
name
contains spaces then the commandSFTP: Open SSH in Terminal
won’t work anymore. May be not related, but thought I would mention it.Click to view original comment, where I done goofed
For me even profile names without whitespace won’t work either. As in, they don’t appear in the VSCode terminal list, nor is used when set as default terminal profile.
Example complete
settings.json
:Click to view
Screenshot
Click to view
Also tried with override name set to true.
Same behavior with stable v1.73.1 and insiders v1.74.0 latest as of 17th november 2022.
Am I misunderstanding intended functionality here, or is it just still broken?
Edit: God damnit, I had a
%
in the path. Seems whitespace in name also works now. So, resolved?Working example settings.json:
One ask would be to view an error or problem when
path
is not valid/ working.Thanks for pointing that out. we had an issue at one point where the exact name of “Git Bash” was the problem and I was confusing that w this. I can reproduce the issue you describe though