Skip to content

Commit 038ace0

Browse files
author
Yu Leng (from Dev Box)
committed
Folder not web need directoryPage and OpenInShellCommand
1 parent 84727c8 commit 038ace0

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/modules/cmdpal/ext/Microsoft.CmdPal.Ext.Bookmark/Command/OpenInTerminalCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// See the LICENSE file in the project root for more information.
44

55
using System;
6+
using Microsoft.CmdPal.Ext.Bookmarks.Helpers;
67
using Microsoft.CmdPal.Ext.Bookmarks.Properties;
78
using Microsoft.CommandPalette.Extensions;
89
using Microsoft.CommandPalette.Extensions.Toolkit;
@@ -16,6 +17,7 @@ internal sealed partial class OpenInTerminalCommand : InvokableCommand
1617
public OpenInTerminalCommand(string folder)
1718
{
1819
Name = Resources.bookmarks_open_in_terminal_name;
20+
Icon = IconHelper.PowerShellIcon;
1921
_folder = folder;
2022
}
2123

src/modules/cmdpal/ext/Microsoft.CmdPal.Ext.Bookmark/Helpers/CommandItemFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ private static CommandItem CreateUrlCommand(BookmarkData bookmark, TypedEventHan
7676

7777
List<CommandContextItem> contextMenu = [];
7878

79-
if (command.Type == BookmarkType.Web)
79+
if (command.Type == BookmarkType.Folder)
8080
{
8181
contextMenu.Add(
8282
new CommandContextItem(new DirectoryPage(command.Url)));

0 commit comments

Comments
 (0)