cmdpal: Re-re-enable the clipboard history (#40471)

_⚠️ targets #40445_

This time, for real

This really really re-enables the clipboard history command. With the
foreground fixes from #40445, we can properly dismiss ourself to give FG
to the next app window. This actually lets us paste correctly.


I took the liberty of localizing the strings and fixing up the icons
while I was at it.

Closes #38344
This commit is contained in:
Mike Griese
2025-07-09 15:42:46 -05:00
committed by GitHub
parent 100fca4468
commit ee764d5f56
11 changed files with 346 additions and 17 deletions

View File

@@ -59,10 +59,10 @@ internal static class ClipboardHelper
output.SetText(text);
try
{
// Clipboard.SetContentWithOptions(output, null);
ClipboardThreadQueue.EnqueueTask(() =>
{
Clipboard.SetContent(output);
Flush();
ExtensionHost.LogMessage(new LogMessage() { Message = "Copied text to clipboard" });
});
@@ -87,7 +87,7 @@ internal static class ClipboardHelper
{
try
{
Task.Run(Clipboard.Flush).Wait();
Clipboard.Flush();
return;
}
catch (Exception ex)