-
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
Clean up boundary between terminal app and terminal page #2208
Clean up boundary between terminal app and terminal page #2208
Conversation
26d69a5
to
514222b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So far so good. I have a couple questions, an I know there's a bit more in the works so I'll come back and take another pass when that's all finished.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
An alternative for ShowDialog is to let TerminalPage call back to App. We can get the App object in this way:
App app = Windows::UI::Xaml::Application::Current().as();
And we can call public methods in App. Example: app.GetLaunchDimensions(dpix)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is some preliminary feedback. I haven't gotten through all of it but there are some points here that could be addressed
344655c
to
c145847
Compare
…rminalApp-and-TerminalPage
@microsoft/windows-console-team time to review this! Thanks alL! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
…rminalApp-and-TerminalPage
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
The code formatting check failed. |
Format issue fixed, tested again and there is no bug. Merge. |
Clean up boundary between terminal app and terminal page (microsoft#2208)
🎉 Handy links: |
This PR is for this project: #1878
Refere
PR Checklist
Requires documentation to be updatedFor now, the new TerminalPage class includes;
global error dialogs
ETW global registration
tab management
tab icons
clipboard management
ETW tab logging
key bindings
And App is responsible for:
settings
settings reload
One issue remaining for now is that I have not figured out how to move the four winrt event handlers in App down to Terminal. I have some work-arounds to attach AppHost methods to the event handlers, but I am still working on this.
Test: According to Griese, we do not have integration/unit tests for now. I have manually tested the app with following actions:
Open new tabs
close tabs
close the last tab
resize window
minimize/restore
ShowTitleBar, true/false
change settings: font size, background color, useAcrylic
Copy/Paste with mouse/keyboard
Tab switch/add/close/ using keys
About button
Split pane vertically and horizontally
Resize panes with keys
Move focus on different panes with keys
Change theme while the app is on.
Change cmd title while the app is on