-
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
Add Quick Fix UI and support for custom CommandNotFound OSC #16848
Merged
Merged
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
12100c5
Add support for custom CommandNotFound OSC
carlos-zamora c8d13d4
[Broken] Properly search through WinGet's catalog
carlos-zamora 534c2d9
add debug code & dismiss button
carlos-zamora c1e1eab
remove info bar code; fix branch
carlos-zamora 68ed03d
use suggestions UI instead
carlos-zamora c2417bb
add a lil polish
carlos-zamora 6a361ef
address feedback; winget integration still in progress
carlos-zamora a2e57b4
Merge branch 'main' into dev/cazamor/cmdNotFound
carlos-zamora cfaa09d
moar progress! (useTransitions -> crash!)
carlos-zamora 88b64cd
fix design
carlos-zamora 48a36be
Merge branch 'main' into dev/cazamor/cmdNotFound
carlos-zamora d8c8807
feature flag; fix scroll bug; clear QF on enter
carlos-zamora 8c0d7c6
clear quick fix on interaction
carlos-zamora ec1fbc2
Merge branch 'main' into dev/cazamor/cmdNotFound
carlos-zamora 767692c
remove feature flag and WinMD refs; add QuickFixesAvailable API; addr…
carlos-zamora d4b6904
improve clearing functionality; fix build; x:Load; try to fix sizing
carlos-zamora 4e5d07d
accessibility!
carlos-zamora 27d464c
adjust button sizing for better visibility
carlos-zamora 0f801a9
make the icon not dumb
carlos-zamora a545325
codeformat
carlos-zamora 755f121
remove the winmd we're not using anymore
carlos-zamora a0aa2d0
re-add feature flag; address Leonard's comments
carlos-zamora 1ffbae1
Merge branch 'main' into dev/cazamor/cmdNotFound
carlos-zamora 0c5d880
Apply suggestions from code review
DHowett ef6af81
Merge remote-tracking branch 'origin/main' into dev/cazamor/cmdNotFound
DHowett db7f464
Adjust for renderer changes on main
DHowett File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
feature flag; fix scroll bug; clear QF on enter
- Loading branch information
commit d8c8807ee7722404846f69be2e6b25e215a4be51
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -115,6 +115,9 @@ namespace winrt::Microsoft::Terminal::Control::implementation | |
auto pfnSearchMissingCommand = [this](auto&& PH1) { _terminalSearchMissingCommand(std::forward<decltype(PH1)>(PH1)); }; | ||
_terminal->SetSearchMissingCommandCallback(pfnSearchMissingCommand); | ||
|
||
auto pfnClearQuickFix = [this] { _terminalClearQuickFix(); }; | ||
_terminal->SetClearQuickFixCallback(pfnClearQuickFix); | ||
|
||
// MSFT 33353327: Initialize the renderer in the ctor instead of Initialize(). | ||
// We need the renderer to be ready to accept new engines before the SwapChainPanel is ready to go. | ||
// If we wait, a screen reader may try to get the AutomationPeer (aka the UIA Engine), and we won't be able to attach | ||
|
@@ -1622,6 +1625,11 @@ namespace winrt::Microsoft::Terminal::Control::implementation | |
SearchMissingCommand.raise(*this, make<implementation::SearchMissingCommandEventArgs>(hstring{ missingCommand })); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 📝 this goes up on the BG thread, then comes back down into us in |
||
} | ||
|
||
void ControlCore::_terminalClearQuickFix() | ||
{ | ||
ClearQuickFix.raise(*this, nullptr); | ||
} | ||
|
||
bool ControlCore::HasSelection() const | ||
{ | ||
const auto lock = _terminal->LockForReading(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 doesn't actually do the winget lookup for
args.MissingCommand
, but we are including the winget winmd?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.
Oops. Yeah, we're blocked by winget. Internally tracking here.
Removed any references to the WinMD since we're not actually using it.