Skip to content

put save image command into output menu#276835

Merged
amunger merged 1 commit intomainfrom
aamunger/saveImageOutput
Nov 12, 2025
Merged

put save image command into output menu#276835
amunger merged 1 commit intomainfrom
aamunger/saveImageOutput

Conversation

@amunger
Copy link
Copy Markdown
Collaborator

@amunger amunger commented Nov 12, 2025

Copilot AI review requested due to automatic review settings November 12, 2025 00:46
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds a "Save Image" command to the output toolbar in notebooks, allowing users to save image outputs directly to disk. The changes include refactoring duplicated code into shared helper functions to improve maintainability.

Key changes:

  • Added a new SaveCellOutputImageAction that appears in the output toolbar for image mime types
  • Refactored duplicated code from action classes into shared utility functions (getNotebookEditorFromContext and getOutputViewModelFromContext)
  • Added a new save icon registration for the notebook save action

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
notebookIcons.ts Registers a new saveIcon for the save image action
cellOutputActions.ts Adds new SaveCellOutputImageAction, refactors duplicated code into utility functions, and updates existing actions to use the shared helpers

@amunger amunger marked this pull request as ready for review November 12, 2025 01:08
@vs-code-engineering vs-code-engineering bot added this to the November 2025 milestone Nov 12, 2025
@amunger amunger merged commit ae900a8 into main Nov 12, 2025
33 of 34 checks passed
@amunger amunger deleted the aamunger/saveImageOutput branch November 12, 2025 01:18
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Dec 27, 2025
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.

3 participants