-
Notifications
You must be signed in to change notification settings - Fork 37.9k
Closed
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable buggood first issueIssues identified as good for first-time contributorsIssues identified as good for first-time contributorshelp wantedIssues identified as good community contribution opportunitiesIssues identified as good community contribution opportunitiesterminalGeneral terminal issues that don't fall under another labelGeneral terminal issues that don't fall under another labelverifiedVerification succeededVerification succeeded
Milestone
Description
Environment
- VSCode Version: 1.34.0
- OS Version: Windows_NT x64 10.0.17763
Description
I found this issue when I was trying to fix #72425.
_validateShellPaths function in src\vs\workbench\contrib\terminal\common\terminalService.ts does not work properly when an array include an empty string at the beginning is sent to _validateShellPaths function.
Steps to Reproduce
- Add the below to
expectedLocationsinsrc\vs\workbench\contrib\terminal\electron-browser\terminalService.ts.
test: ['', `${system32Path}\\cmd.exe`],- Run
npm(or yarn) run watch - Choose the Launch VS Code launch configuration from the launch dropdown in the Debug viewlet and press F5.
- Press
Ctrl+Shift+P. - Select
Terminal: Select Default Shell.
Expect behavior
Choose ${system32Path}\\cmd.exe
Actual behavior
Choose an empty string
Screenshot
Note
Does this issue occur when all extensions are disabled?: Yes
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable buggood first issueIssues identified as good for first-time contributorsIssues identified as good for first-time contributorshelp wantedIssues identified as good community contribution opportunitiesIssues identified as good community contribution opportunitiesterminalGeneral terminal issues that don't fall under another labelGeneral terminal issues that don't fall under another labelverifiedVerification succeededVerification succeeded
