Clean up boundary between terminal app and terminal page#2208
Conversation
26d69a5 to
514222b
Compare
zadjii-msft
left a comment
There was a problem hiding this comment.
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.
KaiyuWang16
left a comment
There was a problem hiding this comment.
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)
zadjii-msft
left a comment
There was a problem hiding this comment.
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! |
…rminalApp-and-TerminalPage
|
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