/
githubmirror
/
PowerToys
Обзор
Документация
Войти
/
githubmirror
/
PowerToys
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/modules/cmdpal/Microsoft.CmdPal.UI.ViewModels/CommandProviderContext.cs
24 строки
666 B
Mike Griese
CmdPal: Add context commands for pinning nested commands (#45673)
26 фев 2026, 19:09
Не верифицирован
26 фев 2026, 19:09
7a0e4ac
Код
Авторство
О чём код?
// 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. namespace Microsoft.CmdPal.UI.ViewModels; public static class CommandProviderContext { public static ICommandProviderContext Empty { get; } = new EmptyCommandProviderContext(); private sealed class EmptyCommandProviderContext : ICommandProviderContext { public string ProviderId => "<EMPTY>"; public bool SupportsPinning => false; } } public interface ICommandProviderContext { string ProviderId { get; } bool SupportsPinning { get; } }