From 281c88a620946f9bb576550175b7ce25464f96f4 Mon Sep 17 00:00:00 2001 From: Mike Griese Date: Tue, 5 Aug 2025 14:15:52 -0500 Subject: [PATCH] CmdPal: fix files not having an open command (#40990) Yea, it's that dumb. Regressed in #40768 --- .../ext/Microsoft.CmdPal.Ext.Indexer/Data/IndexerListItem.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules/cmdpal/ext/Microsoft.CmdPal.Ext.Indexer/Data/IndexerListItem.cs b/src/modules/cmdpal/ext/Microsoft.CmdPal.Ext.Indexer/Data/IndexerListItem.cs index 6cf0165e57..9e4d3a4387 100644 --- a/src/modules/cmdpal/ext/Microsoft.CmdPal.Ext.Indexer/Data/IndexerListItem.cs +++ b/src/modules/cmdpal/ext/Microsoft.CmdPal.Ext.Indexer/Data/IndexerListItem.cs @@ -85,6 +85,10 @@ internal sealed partial class IndexerListItem : ListItem commands.Add(new CommandContextItem(openCommand)); } } + else + { + commands.Add(new CommandContextItem(openCommand)); + } commands.Add(new CommandContextItem(new OpenWithCommand(fullPath))); commands.Add(new CommandContextItem(new ShowFileInFolderCommand(fullPath) { Name = Resources.Indexer_Command_ShowInFolder }));