CmdPal: Load pinned command items from anywhere#45566
Merged
zadjii-msft merged 8 commits intomainfrom Feb 19, 2026
Merged
Conversation
jiripolasek
reviewed
Feb 13, 2026
src/modules/cmdpal/Core/Microsoft.CmdPal.Core.ViewModels/LoadingPageViewModel.cs
Outdated
Show resolved
Hide resolved
This comment has been minimized.
This comment has been minimized.
11 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This doesn't actually have a UX to expose this yet - we need to stack a couple of PRs up to get to that.
But this adds plumbing such that we can now stash away a command ID, and retrieve it later as a top-level command. Kinda like pinning for apps, but for anything.
It works off of a new command provider interface
ICommandProvider4, which lets us look up CommandItems by ID. If we see a command ID stored in that command provider's settings, we will try to look it up, and then load it from the command provider.e.g.
will get us

Then it's just a matter of plumbing the command provider ID through the layers, so that the command item knows who it is from. We'll need that later for actually wiring this to the command's context menu.
related to #45191
related to #45201