-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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
+516
−42
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
Loading status checks…
remove feature flag and WinMD refs; add QuickFixesAvailable API; addr…
…ess some other feedback
commit 767692c782107c5ac8b29bdd385740a1511cbb21
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
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 |
---|---|---|
|
@@ -13,7 +13,6 @@ | |
#include <unicode.hpp> | ||
#include <utils.hpp> | ||
#include <WinUser.h> | ||
//#include <winrt/Microsoft.Management.Deployment.h> | ||
|
||
#include "EventArgs.h" | ||
#include "../../renderer/atlas/AtlasEngine.h" | ||
|
@@ -23,7 +22,6 @@ | |
#include "ControlCore.g.cpp" | ||
#include "SelectionColor.g.cpp" | ||
|
||
//using namespace winrt::Microsoft::Management::Deployment; | ||
using namespace ::Microsoft::Console::Types; | ||
using namespace ::Microsoft::Console::VirtualTerminal; | ||
using namespace ::Microsoft::Terminal::Core; | ||
|
@@ -2304,6 +2302,11 @@ namespace winrt::Microsoft::Terminal::Control::implementation | |
return *context; | ||
} | ||
|
||
bool ControlCore::QuickFixesAvailable() const noexcept | ||
{ | ||
return _cachedQuickFixes && _cachedQuickFixes.Size() > 0; | ||
} | ||
|
||
void ControlCore::UpdateQuickFixes(const Windows::Foundation::Collections::IVector<hstring>& quickFixes) | ||
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 is more of a |
||
{ | ||
_cachedQuickFixes = quickFixes; | ||
|
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
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
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.