Conversation
…ompile a String[]
…!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
…safely tear it down. It _seems_ like it.
…ndow should be. It just always says 0 for now, but in the future it could actually give us useful info.
|
(@ everyone - we're trying to get this in for 1.7 today, hence why you're all on the assigned-to line. Thanks |
| // else if (_ProfileIndex) | ||
| // { | ||
| // ss << fmt::format(L"profile index: {}, ", _ProfileIndex.Value()); | ||
| // } |
There was a problem hiding this comment.
So remove the dead code for index?
There was a problem hiding this comment.
I think this is valuable to keep.
| OpenNewTabDropdown, | ||
| DuplicateTab, | ||
| NewTab, | ||
| NewWindow, |
There was a problem hiding this comment.
Looks like you just moved around these enums. Could probably revert changes here.
There was a problem hiding this comment.
FYI I intentionally moved them all to be at the end so that the order was more consistent, and reflective of the order these things were added in. NewWindow already existing in the list was maybe an oversight? I suppose I reserved the key long before it ever was used?
| { ShortcutAction::MoveTab, MoveTabArgs::FromJson }, | ||
| { ShortcutAction::ToggleCommandPalette, ToggleCommandPaletteArgs::FromJson }, | ||
| { ShortcutAction::FindMatch, FindMatchArgs::FromJson }, | ||
| { ShortcutAction::NewWindow, NewWindowArgs::FromJson }, |
There was a problem hiding this comment.
This line seems to be the only relevant change in this file. All of the other ones are just moving stuff around.
| event Windows.Foundation.TypedEventHandler<ShortcutActionDispatch, Microsoft.Terminal.Settings.Model.ActionEventArgs> BreakIntoDebugger; | ||
| event Windows.Foundation.TypedEventHandler<ShortcutActionDispatch, Microsoft.Terminal.Settings.Model.ActionEventArgs> FindMatch; | ||
| event Windows.Foundation.TypedEventHandler<ShortcutActionDispatch, Microsoft.Terminal.Settings.Model.ActionEventArgs> TogglePaneReadOnly; | ||
| event Windows.Foundation.TypedEventHandler<ShortcutActionDispatch, Microsoft.Terminal.Settings.Model.ActionEventArgs> NewWindow; |
There was a problem hiding this comment.
Just moved stuff around. Could revert changes to this file
| TYPED_EVENT(BreakIntoDebugger, TerminalApp::ShortcutActionDispatch, Microsoft::Terminal::Settings::Model::ActionEventArgs); | ||
| TYPED_EVENT(FindMatch, TerminalApp::ShortcutActionDispatch, Microsoft::Terminal::Settings::Model::ActionEventArgs); | ||
| TYPED_EVENT(TogglePaneReadOnly, TerminalApp::ShortcutActionDispatch, Microsoft::Terminal::Settings::Model::ActionEventArgs); | ||
| TYPED_EVENT(NewWindow, TerminalApp::ShortcutActionDispatch, Microsoft::Terminal::Settings::Model::ActionEventArgs); |
There was a problem hiding this comment.
Just moved things around. Can revert changes to this file.
| _TogglePaneReadOnlyHandlers(*this, eventArgs); | ||
| break; | ||
| } | ||
| case ShortcutAction::NewWindow: |
There was a problem hiding this comment.
Just moved things around. Can revert changes to this file.
DHowett
left a comment
There was a problem hiding this comment.
The only thing I am blocking on is that header filled with bare functions. They have to be _TIL_INLINEPREFIX or put into a cpp that is compiled and linked into WinRTUtils, or made safe in some other way.
| // else if (_ProfileIndex) | ||
| // { | ||
| // ss << fmt::format(L"profile index: {}, ", _ProfileIndex.Value()); | ||
| // } |
There was a problem hiding this comment.
I think this is valuable to keep.
|
|
||
| if (!_Commandline.empty()) | ||
| { | ||
| ss << fmt::format(L"-- \"{}\" ", _Commandline); |
There was a problem hiding this comment.
i think there's a better way to do this (using format_to), but i am not blocking on it
| // - <none> | ||
| // Return Value: | ||
| // - true if we believe this extension is being run in the dev build package. | ||
| bool IsDevBuild() |
There was a problem hiding this comment.
we can't do this. Including bare functions in a header is a way to get hurt during linking if two files in the same project #include it.
| // This will get us the correct exe for dev/preview/release. If you | ||
| // don't stick this in a local, it'll get mangled by ShellExecute. I | ||
| // have no idea why. | ||
| const auto exePath{ GetWtExePath() }; |
There was a problem hiding this comment.
technically only works for CascadiaPackage and not WTU
There was a problem hiding this comment.
if we were doing this to the gills we would propagate the event out of AppLogic and to the win32 host so the win32 host could spawn another copy of itself
There was a problem hiding this comment.
this is not a blocking comment!
| newTerminalArgs = NewTerminalArgs(); | ||
| } | ||
|
|
||
| auto [profileGuid, settings] = TerminalSettings::BuildSettings(_settings, |
There was a problem hiding this comment.
BIG HAMMER to get a guid from an args
it's now _after_ 5pm on a friday so I'm not doing the rest
|
Hello @DHowett! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
|
🎉 Handy links: |
Finally implements the
newWindowaction. It does so byShellExecuteingwt.exewith commandline args corresponding to theones that would create the same
NewTerminalArgs. This works with #8898and #9118 to allow new windows (even with
windowingBehavior: useExisting)This is taken from my auto-elevate branch, hence the references to
elevation
References #5000
References projects/5
References #8898
References #9118
Closes #1051