Repository navigation
Respect the "/max" parameter when starting console apps with defterm enabled - #14222
5 commits merged into
Conversation
Mike Griese (zadjii-msft)
left a comment
There was a problem hiding this comment.
This seems like how I'd do it
|
@msftbot merge this in 10 minutes |
|
Hello Carlos Zamora (@carlos-zamora)! Because you've given me some instructions on how to help merge this pull request, I'll be modifying my merge approach. Here's how I understand your requirements for merging this pull request:
If this doesn't seem right to you, you can tell me to cancel these instructions and use the auto-merge policy that has been configured for this repository. Try telling me "forget everything I just told you". |
…enabled (#14222) ## Summary of the Pull Request - Pipe the `ShowWindow` value through to `ConptyConnection` - When `TerminalPage` receives the new connection, it checks the `ShowWindow` value and maximizes *IF* there were no other pre-existing tabs (in glomming mode, we don't want to maximize sessions that did not ask for it) ## References #12154 ## PR Checklist * [ ] Closes #xxx * [x] CLA signed. If not, go over [here](https://cla.opensource.microsoft.com/microsoft/Terminal) and sign the CLA * [ ] Tests added/passed * [ ] Documentation updated. If checked, please file a pull request on [our docs repo](https://github.com/MicrosoftDocs/terminal) and link it here: #xxx * [ ] Schema updated. * [x] I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. Issue number where discussion took place: #xxx ## Detailed Description of the Pull Request / Additional comments This is just a temporary solution until we change our defterm handoff process. Because of the way the process currently works, we have no way of knowing that the connection has requested the window to be maximized until after we have already started a terminal session. This means that we have to manually maximize the window upon receiving the connection, instead of having the session _start_ maximized, as it probably should. ## Validation Steps Performed `start /max python` with defterm enabled opens up python in a maximized WT window (cherry picked from commit 85ca8f5) Service-Card-Id: 87207152 Service-Version: 1.16
|
🎉 Handy links: |
|
Note to future me: We don't need to do the same with |
Summary of the Pull Request
ShowWindowvalue through toConptyConnectionTerminalPagereceives the new connection, it checks theShowWindowvalue and maximizes IF there were no other pre-existing tabs (in glomming mode, we don't want to maximize sessions that did not ask for it)References
#12154
PR Checklist
Detailed Description of the Pull Request / Additional comments
This is just a temporary solution until we change our defterm handoff process. Because of the way the process currently works, we have no way of knowing that the connection has requested the window to be maximized until after we have already started a terminal session. This means that we have to manually maximize the window upon receiving the connection, instead of having the session start maximized, as it probably should.
Validation Steps Performed
start /max pythonwith defterm enabled opens up python in a maximized WT window