-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
newTab with out-of-range profile index uses the default profile #11114
Comments
Hmm. I likely regressed this in the change to profile resolution... |
Oh wait, this isn't a regression. Even in #10982 this worked this way. OP is reporting this in 1.9, and the profile resolution changes only started in v1.11.2421.0. I'm un-blocking this one, and tossing into 2.0, discussion.
It's easy enough to change this, but we'll need to think for a second about this. pushed proposal in https://github.com/microsoft/terminal/pull/new/dev/migrie/b/11114-proposal |
I'd prefer discarding the keyboard event rather than passing it through to the conpty. |
Theoretically, the best thing to do here is warn the user "hey bud you had an action for 'profile 900' but you have like 5, that doesn't make sense". Unfortunately, we ship with the profiles 1-9 actions by default. So we can't warn for those easily - we'd need to conditionally warn depending on where the action camefrom and that's ridiculous. We also concur that this is different than We also agree that it is okay that these two act differently. It makes more sense for |
…of profiles (#11621) ## Summary of the Pull Request As discussed in team sync. Ignore `newTab` actions with a profile index greater than the number of profiles. ## PR Checklist * [x] Closes #11114 * [x] I work here * [ ] Tests added/passed * [ ] Requires documentation to be updated - maybe❓ (cherry picked from commit ce850ca) Service-Card-Id: 81744839 Service-Version: 1.13
🎉This issue was addressed in #11621, which has now been successfully released as Handy links: |
🎉This issue was addressed in #11621, which has now been successfully released as Handy links: |
Windows Terminal version (or Windows build number)
1.9.1942.0
Other Software
No response
Steps to reproduce
Expected Behavior
No tab opens, because there are fewer than nine active profiles. Perhaps it beeps instead.
Actual Behavior
A new tab opens with the PowerShell profile.
The text was updated successfully, but these errors were encountered: