Skip to content

Commit a410cee

Browse files
committed
Added Cake Addin and File Based Apps support
1 parent ff67df0 commit a410cee

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
2+
<s:Boolean x:Key="/Default/UserDictionary/Words/=Addin/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary>

src/NuGetPackageSearchCmdPalExtension/Pages/SearchNuGetPackagesPage.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,11 @@ private static async Task<IReadOnlyList<ListItem>> ProcessSearchAsync(string sea
139139
new CommandContextItem(new CopyTextCommand($"<PackageReference Include=\"{id}\" Version=\"{version}\" />"){Name = "Copy Package Reference"}),
140140
new CommandContextItem(new CopyTextCommand($"dotnet add package {id} --version {version}"){Name = "Copy .NET CLI command"}),
141141
new CommandContextItem(new CopyTextCommand($"NuGet\\Install-Package {id} -Version {version}"){Name = "Copy Nuget Package Manager command"}),
142-
new CommandContextItem(new CopyTextCommand($"#r \"nuget: {id}, {version}\""){Name = "Copy Script & Interactive"})
142+
new CommandContextItem(new CopyTextCommand($"#r \"nuget: {id}, {version}\""){Name = "Copy Script & Interactive"}),
143+
new CommandContextItem(new CopyTextCommand($"#:package {id}@{version}"){Name = "Copy File-based Apps"}),
144+
new CommandContextItem(new CopyTextCommand($"#addin nuget:?package={id}={version}"){Name = "Copy Cake Addin"}),
145+
new CommandContextItem(new CopyTextCommand($"#tool nuget:?package={id}&version={version}"){Name = "Copy Cake Tool"})
146+
143147
]
144148
});
145149
}

0 commit comments

Comments
 (0)