Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Hyper-V supported operations incorrect based on state #2868

@bbonaby

Description

@bbonaby

Dev Home version

No response

Windows build number

No response

Other software

No response

Steps to reproduce the bug

the following test scenarios fail as the Hyper-V extension hard codes its supported operations.

Hyper-V extension allows users to start their VMs by clicking the start button in the menu flyout of the launch split button (This should only be available when VM in stopped, paused or saved state)

Hyper-V extension allows users to stop their VMs by clicking the stop button in the menu flyout of the launch split button (This should only be available when VM in running state)

Hyper-V extension allows users to pause their VMs by clicking the pause button in the menu flyout of the launch split button (This should only be available when VM in running state)

Hyper-V extension allows users to save the VMs state by clicking the save button in the menu flyout of the launch split button (This should only be available when VM in running state)

Hyper-V extension allows users to restart their VMs by clicking the restart button in the menu flyout of the three dots button (This should only be available when VM in running state)

Hyper-V extension allows users to delete their VMs by clicking the delete button in the menu flyout of the three dots button (This should only be available when VM in stopped or saved state)

Expected result

the supported operations are dynamically updated based on the state of the VM

Actual result

supported operations are hard coded. This leads to errors when operations are attempted and the VM is in an incorrect state for that operation

Included System Information

No response

Included Extensions Information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions