Skip to content

Fix command palette support for restartRevision#487

Merged
MicroFish91 merged 1 commit intomainfrom
mwf/better-emerald
Oct 19, 2023
Merged

Fix command palette support for restartRevision#487
MicroFish91 merged 1 commit intomainfrom
mwf/better-emerald

Conversation

@MicroFish91
Copy link
Copy Markdown
Contributor

@MicroFish91 MicroFish91 commented Oct 12, 2023

Fixes #486

@MicroFish91 MicroFish91 marked this pull request as ready for review October 12, 2023 20:22
@MicroFish91 MicroFish91 requested a review from a team as a code owner October 12, 2023 20:22

export async function executeRevisionOperation(context: IActionContext, node: ContainerAppItem | RevisionItem | undefined, operation: RevisionOperation): Promise<void> {
const item = node ?? await pickContainerApp(context);
if (!node) {
Copy link
Copy Markdown
Member

@alexweininger alexweininger Oct 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if the node is a ContainerAppItem but it's in multiple revision mode? Do we still need to pick a revision in that case?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should be good with this scenario because the command is removed from the context menu when in multiple revisions mode. When in multiple revisions mode the command should only be executable from either no node (command-palette) or a RevisionItem!

@MicroFish91 MicroFish91 merged commit e24a36f into main Oct 19, 2023
@MicroFish91 MicroFish91 deleted the mwf/better-emerald branch October 19, 2023 17:39
@microsoft microsoft locked and limited conversation to collaborators Mar 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Revision prompt doesn't show up when executing the "Restart Revision" command through the command palette

2 participants