From a7bd521b467472e444ea25564cb48b1557b8457d Mon Sep 17 00:00:00 2001 From: Mike Griese Date: Wed, 20 Aug 2025 06:55:22 -0500 Subject: [PATCH] add it back to the toolkit --- .../cmdpal/ext/SamplePagesExtension/Pages/SampleListPage.cs | 6 +++--- .../FontIconData.cs | 3 ++- .../Microsoft.CommandPalette.Extensions.Toolkit/IconData.cs | 1 + 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/modules/cmdpal/ext/SamplePagesExtension/Pages/SampleListPage.cs b/src/modules/cmdpal/ext/SamplePagesExtension/Pages/SampleListPage.cs index b7c203e76e..92c5e70909 100644 --- a/src/modules/cmdpal/ext/SamplePagesExtension/Pages/SampleListPage.cs +++ b/src/modules/cmdpal/ext/SamplePagesExtension/Pages/SampleListPage.cs @@ -187,11 +187,11 @@ internal sealed partial class SampleListPage : ListPage { private FontIconData _icon = new("\u0026", "Wingdings"); - public override IconInfo Icon => new IconInfo(_icon, _icon); + public override IconInfo Icon => new(_icon, _icon); public override string Name => "Whatever"; - public IDictionary GetProperties() => new Dictionary() + public IDictionary GetProperties() => new Windows.Foundation.Collections.ValueSet() { { "Foo", "bar" }, { "Secret", 42 }, @@ -215,7 +215,7 @@ internal sealed partial class SampleListPage : ListPage return CommandResult.ShowToast("whoop"); } - public IDictionary GetProperties() => new Dictionary() + public IDictionary GetProperties() => new Windows.Foundation.Collections.ValueSet() { { "yo", "dog" }, { "Secret", 12345 }, diff --git a/src/modules/cmdpal/extensionsdk/Microsoft.CommandPalette.Extensions.Toolkit/FontIconData.cs b/src/modules/cmdpal/extensionsdk/Microsoft.CommandPalette.Extensions.Toolkit/FontIconData.cs index b07c0ff372..7e12d38d0c 100644 --- a/src/modules/cmdpal/extensionsdk/Microsoft.CommandPalette.Extensions.Toolkit/FontIconData.cs +++ b/src/modules/cmdpal/extensionsdk/Microsoft.CommandPalette.Extensions.Toolkit/FontIconData.cs @@ -1,6 +1,7 @@ // Copyright (c) Microsoft Corporation // The Microsoft Corporation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using Windows.Foundation.Collections; namespace Microsoft.CommandPalette.Extensions.Toolkit; @@ -24,7 +25,7 @@ public partial class FontIconData : IconData, IExtendedAttributesProvider FontFamily = fontFamily; } - public IDictionary? GetProperties() => new Dictionary() + public IDictionary? GetProperties() => new ValueSet() { { "FontFamily", FontFamily }, }; diff --git a/src/modules/cmdpal/extensionsdk/Microsoft.CommandPalette.Extensions.Toolkit/IconData.cs b/src/modules/cmdpal/extensionsdk/Microsoft.CommandPalette.Extensions.Toolkit/IconData.cs index b36f7242ae..35fdf7b8e7 100644 --- a/src/modules/cmdpal/extensionsdk/Microsoft.CommandPalette.Extensions.Toolkit/IconData.cs +++ b/src/modules/cmdpal/extensionsdk/Microsoft.CommandPalette.Extensions.Toolkit/IconData.cs @@ -2,6 +2,7 @@ // The Microsoft Corporation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Diagnostics.CodeAnalysis; using Windows.Storage.Streams; namespace Microsoft.CommandPalette.Extensions.Toolkit;