/
githubmirror
/
PowerToys
Обзор
Документация
Войти
/
githubmirror
/
PowerToys
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/modules/cmdpal/ext/Microsoft.CmdPal.Ext.System/Pages/SystemCommandPage.cs
25 строк
941 B
Yu Leng
[CmdPal][UnitTest] Refactor system command unit test (#40874)
30 июл 2025, 12:19
Не верифицирован
30 июл 2025, 12:19
46d380c
Код
Авторство
О чём код?
// 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 Microsoft.CmdPal.Ext.System.Helpers; using Microsoft.CommandPalette.Extensions; using Microsoft.CommandPalette.Extensions.Toolkit; namespace Microsoft.CmdPal.Ext.System.Pages; public sealed partial class SystemCommandPage : ListPage { private readonly ISettingsInterface _settingsManager; public SystemCommandPage(ISettingsInterface settingsManager) { Title = Resources.Microsoft_plugin_ext_system_page_title; Name = Resources.Microsoft_plugin_command_name_open; Icon = IconHelpers.FromRelativePath("Assets\\SystemCommand.svg"); _settingsManager = settingsManager; ShowDetails = true; } public override IListItem[] GetItems() => Commands.GetAllCommands(_settingsManager).ToArray(); }