Skip to content

CmdPal: Move bookmarks with placeholders to be parameters - #47886

Merged
Mike Griese (zadjii-msft) merged 98 commits into
mainfrom
dev/migrie/f/bookmark-params
May 16, 2026
Merged

Mike Griese (zadjii-msft) merged 98 commits into
mainfrom
dev/migrie/f/bookmark-params

Conversation

@zadjii-msft

Copy link
Copy Markdown
Member

The placeholders page for a bookmark is already goofy. It's a seemingly simple form, for just filling in something that really should be an inline value.

So let's do that!

This moves the placeholders out of a whole adaptive card, and into an inline parameter.

Targets #47885

image image

The placeholders page for a bookmark is already goofy. It's a seemingly
simple form, for just filling in something that really should be an
inline value.

So let's do that!

This moves the placeholders out of a whole adaptive card, and into an
inline parameter.

Targets (the pr that targets #47826)
@zadjii-msft Mike Griese (zadjii-msft) added Product-Command Palette Refers to the Command Palette utility 0.100 labels May 14, 2026
This PR is stacked on top of #47826

This augments the previous PR to add support for List parameters too.
This allows extensions to add parameters where the "command" to select a
value is just a `IListPage`. That lets the extension author specify a
set of possible values, and let us handle the rendering of that list.

The canonical example is the `CreateNoteParametersPage`, in
`ParameterSamples.cs`. In that sample, there's a set of possible values
for the folder param. The extension exposes that to us, and we can then
let the user navigate that
list just like any other list page.


https://github.com/user-attachments/assets/ecafc5fc-ed43-4554-94ff-80ca96e8c83e

Unfortunately, this kinda means that we need to refactor ListPage a bit.
We need to slice it, so that we can have the list itself as it's own
control, separate from the "page". This lets us easily add the
`ListItemsView` to the parameters page too. All of that code should
basically be copied verbatim. Sorry that github will have a hard time
comparing the two.
Base automatically changed from dev/migrie/f/parameters-list to dev/migrie/f/parameters-2026 May 15, 2026 14:30
Base automatically changed from dev/migrie/f/parameters-2026 to main May 16, 2026 01:40
@zadjii-msft
Mike Griese (zadjii-msft) enabled auto-merge (squash) May 16, 2026 01:40
@zadjii-msft
Mike Griese (zadjii-msft) merged commit 2d3f935 into main May 16, 2026
15 checks passed
@zadjii-msft
Mike Griese (zadjii-msft) deleted the dev/migrie/f/bookmark-params branch May 16, 2026 12:09
Niels Laute (niels9001) added a commit that referenced this pull request May 17, 2026
These files were intentionally deleted on main by recent PRs but were
resurrected when 7aae734 merged main with a bad conflict resolution:
- HideWindowMessage.cs (deleted by #47826 CmdPal parameters)
- BookmarkPlaceholderForm.cs (deleted by #47886 bookmarks-as-parameters)
- NativeMethods.json/.txt + WindowsPackageManager.Interop/* (deleted by
  #46636 Extension Gallery)
- Ext.Indexer/Assets/Actions.png (moved/deleted by #46636)
- DdcCiValidationResult.cs (deleted by #47875 PowerDisplay max-compat)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

0.100 Product-Command Palette Refers to the Command Palette utility

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants