Skip to content

refactor: consolidate container lifecycle actions - #381

Merged
federicobozzini merged 3 commits into
mainfrom
container-lifecycle-cmd-refactor
Jul 27, 2026
Merged

refactor: consolidate container lifecycle actions#381
federicobozzini merged 3 commits into
mainfrom
container-lifecycle-cmd-refactor

Conversation

@federicobozzini

Copy link
Copy Markdown
Collaborator

Changes

  • moved start, stop and delete container operations all in a single class since their behaviour is pretty much identical

Screenshots

Signed-off-by: Federico Bozzini <federico.bozzini@arm.com>
@federicobozzini
federicobozzini requested a review from a team as a code owner July 24, 2026 15:03
@github-actions github-actions Bot added the refactor Refactor change excluded from release notes label Jul 24, 2026

@awphi awphi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice!

Comment thread src/actions/containerLifecycle.test.ts Outdated

await invoke(lifecycle, treeItem);

expect(showErrorMessageSpy).toHaveBeenCalledWith(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
expect(showErrorMessageSpy).toHaveBeenCalledWith(
expect(vi.mocked(vscode.window.showErrorMessage)).toHaveBeenCalledWith(

Allows for deletion of the manual spy and beforeEach/afterEach blocks

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

federicobozzini and others added 2 commits July 27, 2026 14:43
Signed-off-by: Federico Bozzini <federico.bozzini@arm.com>
@federicobozzini
federicobozzini merged commit cfd1f55 into main Jul 27, 2026
4 checks passed
@federicobozzini
federicobozzini deleted the container-lifecycle-cmd-refactor branch July 27, 2026 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor Refactor change excluded from release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants