CmdPal: Filtering out pinned apps on search (#40785)

Closes #40781 

Filters out TopLevelCommands whose Id matches an app coming from the
`AllAppsCommandProvider.Page.GetItems()`.

Hate adding processing there, but without adding some type of `bool
HideMeOnSearch` to something low enough (like ICommandItem), I don't see
another way to distinguish these.
This commit is contained in:
Michael Jolley
2025-07-28 08:45:08 -05:00
committed by GitHub
parent 858081ec78
commit 114c3972be
3 changed files with 8 additions and 7 deletions

View File

@@ -3,13 +3,11 @@
// See the LICENSE file in the project root for more information.
using System.Collections.Generic;
using Microsoft.CmdPal.Ext.Apps.Programs;
using Microsoft.CommandPalette.Extensions;
using Microsoft.CommandPalette.Extensions.Toolkit;
namespace Microsoft.CmdPal.Ext.Apps;
internal sealed class AppItem
public sealed class AppItem
{
public string Name { get; set; } = string.Empty;