-
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
Fails to launch maximized/fullscreen and the given profile #7318
Comments
|
Whoops, you're totally right. This is an unusual interaction between the "default" command ( Right now, Workaround:
That also explains why your Sorry about that! /cc @zadjii-msft |
Currently when implicit tab command is specified (i.e., we have parameters for new-tab, but don't have the explicit subcommand name) we fallback to parsing the entire arg list as new tab command. However, if we also have a launch profile (or anything else that might in the future belong to the upper scope) it is passed as a parameter to the new tab command, failing the parsing. The idea behind my solution is to run the parser as a prefix command - i.e., as long as we succeed to parse [options] / [subcommand] we will parse them (populating the fields like a launch mode), but once we will discover something unfamiliar, like profile, we will know that the prefix is over and will handle the remaining suffix as a new tab command. ## Validation Steps Performed * UT added * Manual run of different options Closes #7318
Currently when implicit tab command is specified (i.e., we have parameters for new-tab, but don't have the explicit subcommand name) we fallback to parsing the entire arg list as new tab command. However, if we also have a launch profile (or anything else that might in the future belong to the upper scope) it is passed as a parameter to the new tab command, failing the parsing. The idea behind my solution is to run the parser as a prefix command - i.e., as long as we succeed to parse [options] / [subcommand] we will parse them (populating the fields like a launch mode), but once we will discover something unfamiliar, like profile, we will know that the prefix is over and will handle the remaining suffix as a new tab command. ## Validation Steps Performed * UT added * Manual run of different options Closes #7318 (cherry picked from commit 435e457)
🎉This issue was addressed in #8315, which has now been successfully released as Handy links: |
🎉This issue was addressed in #8315, which has now been successfully released as Handy links: |
Environment
Steps to reproduce
Open CMD and start wt maximized/fullscreen and a given profile, e.i.
wt -M -p "Command Prompt"
Expected behavior
Windows Terminal opens in maximized mode with the "Command Prompt" profile
Actual behavior
Doesn't start and gives error:
Additional information
wt -M
launches the terminal in maximized mode with default profile
wt -p "Command Prompt" -d D:/ ; -M
launches the terminal maximized and the given profile, but with a second tab with the default profile
wt -p "Command Prompt" -d D:/ ; -M split-pane -d D:/ -p "Windows PowerShell"
launches the terminal with 2 tabs with the selected profiles in maximized mode
wt -M -p "Command Prompt" -d D:/ ; split-pane -d D:/ -p "Windows PowerShell"
doesn't work
The text was updated successfully, but these errors were encountered: