-
Notifications
You must be signed in to change notification settings - Fork 9k
Add Quick Fix UI and support for custom CommandNotFound OSC #16848
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
Changes from 5 commits
12100c5
c8d13d4
534c2d9
c1e1eab
68ed03d
c2417bb
6a361ef
a2e57b4
cfaa09d
88b64cd
48a36be
d8c8807
8c0d7c6
ec1fbc2
767692c
d4b6904
4e5d07d
27d464c
0f801a9
a545325
755f121
a0aa2d0
1ffbae1
0c5d880
ef6af81
db7f464
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1308,7 +1308,7 @@ namespace winrt::TerminalApp::implementation | |
| // requires context from the control) | ||
| // then get that here. | ||
| const bool shouldGetContext = realArgs.UseCommandline() || | ||
| WI_IsFlagSet(source, SuggestionsSource::CommandHistory); | ||
| WI_IsAnyFlagSet(source, SuggestionsSource::CommandHistory | SuggestionsSource::WinGetCommandNotFound); | ||
| if (shouldGetContext) | ||
| { | ||
| if (const auto& control{ _GetActiveControl() }) | ||
|
|
@@ -1348,6 +1348,16 @@ namespace winrt::TerminalApp::implementation | |
| } | ||
| } | ||
|
|
||
| if (WI_IsFlagSet(source, SuggestionsSource::WinGetCommandNotFound) && | ||
| context != nullptr) | ||
| { | ||
| const auto recentCommands = Command::ToSendInputCommands(context.WinGetSuggestions()); | ||
| for (const auto& t : recentCommands) | ||
| { | ||
| commandsCollection.push_back(t); | ||
| } | ||
| } | ||
|
|
||
|
||
| // Open the palette with all these commands in it. | ||
| _OpenSuggestions(_GetActiveControl(), | ||
| winrt::single_threaded_vector<Command>(std::move(commandsCollection)), | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -439,6 +439,11 @@ | |
| <ResolvedFrom>CppWinRTImplicitlyExpandTargetPlatform</ResolvedFrom> | ||
| <IsSystemReference>True</IsSystemReference> | ||
| </Reference> | ||
| <Reference Include="$(OpenConsoleDir)src\cascadia\TerminalApp\Microsoft.Management.Deployment.winmd"> | ||
|
||
| <IsWinMDFile>true</IsWinMDFile> | ||
| <Private>false</Private> | ||
| <CopyLocalSatelliteAssemblies>false</CopyLocalSatelliteAssemblies> | ||
| </Reference> | ||
| </ItemGroup> | ||
| <!-- ====================== Compiler & Linker Flags ===================== --> | ||
| <ItemDefinitionGroup> | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.