![]() |
VOOZH | about |
dotnet add package JPSoftworks.CommandPalette.Extensions.Toolkit --version 0.9.0
NuGet\Install-Package JPSoftworks.CommandPalette.Extensions.Toolkit -Version 0.9.0
<PackageReference Include="JPSoftworks.CommandPalette.Extensions.Toolkit" Version="0.9.0" />
<PackageVersion Include="JPSoftworks.CommandPalette.Extensions.Toolkit" Version="0.9.0" />Directory.Packages.props
<PackageReference Include="JPSoftworks.CommandPalette.Extensions.Toolkit" />Project file
paket add JPSoftworks.CommandPalette.Extensions.Toolkit --version 0.9.0
#r "nuget: JPSoftworks.CommandPalette.Extensions.Toolkit, 0.9.0"
#:package JPSoftworks.CommandPalette.Extensions.Toolkit@0.9.0
#addin nuget:?package=JPSoftworks.CommandPalette.Extensions.Toolkit&version=0.9.0Install as a Cake Addin
#tool nuget:?package=JPSoftworks.CommandPalette.Extensions.Toolkit&version=0.9.0Install as a Cake Tool
A set of extensions and utilities for building Command Palette extensions, extending the Microsoft.CommandPalette.Extensions NuGet package with an opinionated feature set.
The implementation may change in the future. As Command Palette evolves, so will this toolkit. Use at your own risk.
ExtensionHostRunner simplifies creating and running Command Palette extensions.
It provides:
Logger class.-Debug argument enables debug-level logging at runtime.StartupHelper class.ShutdownHelper class.Usage:
[MTAThread]
public static async Task Main(string[] args)
{
await ExtensionHostRunner.RunAsync(
args,
new ExtensionHostRunnerParameters
{
PublisherMoniker = "MyCompany",
ProductMoniker = "MyExtension",
IsDebug = false, // default is false
EnableEfficiencyMode = true, // default is true
ExtensionFactories = [
new DelegateExtensionFactory(manualResetEvent => new MyExtension(manualResetEvent))
]
});
}
Logger is a simple logging utility that writes messages to a custom log file and to the extension host log. It supports different log levels and can be used to log debug, info, warning, and error messages.
Debug-level logging can be enabled by passing the -Debug argument to the process or manually by settings IsDebug property of ExtensionHostRunnerParameters.
Usage:
Logger.LogDebug("This is a debug message.");
Logger.LogInformation("This is an info message.");
Logger.LogWarning("This is a warning message.");
Logger.LogError("This is an error message.");
StartupHelper provides a user interface when the extension is launched without arguments—for example, when the user clicks the extension icon in the Start menu or taskbar. It can be used to open Command Palette or prompt the user to install PowerToys.
ShutdownHelper adjusts the extension process’s shutdown priority relative to the extension host. This ensures the operating system does not terminate the extension process while the host is still running.
AppLifeMonitor monitors the application’s lifetime and signals when the operating system attempts to close it.
EfficiencyModeHelper enables Windows Efficiency Mode (EcoQoS) for the extension process, reducing CPU usage when the extension is idle. It can also lower process priority and enable EcoQoS.
Apache 2.0
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0-windows10.0.22621 net9.0-windows10.0.22621 is compatible. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.9.0 | 134 | 3/23/2026 |
| 0.5.0 | 257 | 9/5/2025 |
| 0.3.0-preview.5 | 176 | 8/19/2025 |
| 0.3.0-preview.4 | 164 | 8/19/2025 |
| 0.3.0-preview.3 | 161 | 7/27/2025 |
| 0.3.0-preview.2 | 293 | 7/26/2025 |
| 0.3.0-preview.1 | 302 | 7/26/2025 |
| 0.0.2 | 238 | 5/11/2025 |
| 0.0.1 | 199 | 5/11/2025 |