Skip to content

Enable markdown image context menu in custom editors too#314585

Merged
mjbvz merged 1 commit intomainfrom
dev/mjbvz/xeric-swallow
May 5, 2026
Merged

Enable markdown image context menu in custom editors too#314585
mjbvz merged 1 commit intomainfrom
dev/mjbvz/xeric-swallow

Conversation

@mjbvz
Copy link
Copy Markdown
Collaborator

@mjbvz mjbvz commented May 5, 2026

No description provided.

Copilot AI review requested due to automatic review settings May 5, 2026 23:38
@mjbvz mjbvz enabled auto-merge May 5, 2026 23:38
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 5, 2026

Screenshot Changes

Base: c25f7a7e Current: ce1feb62

Changed (13)

chat/input/chatInput/Default/Dark
Before After
before after
chat/input/chatInput/WithArtifacts/Light
Before After
before after
chat/input/chatInput/WithFileChanges/Dark
Before After
before after
chat/input/chatInput/WithTodos/Light
Before After
before after
chat/input/chatInput/WithTodosAndFileChanges/Dark
Before After
before after
chat/input/chatInput/WithTodosAndFileChanges/Light
Before After
before after
chat/input/chatInput/WithArtifactsAndFileChanges/Light
Before After
before after
chat/input/chatInput/Full/Dark
Before After
before after
chat/input/chatInput/Full/Light
Before After
before after
chat/widget/chatWidget/SimpleQA/Dark
Before After
before after
chat/widget/chatWidget/SimpleQA/Light
Before After
before after
chat/widget/chatWidget/PendingToolApproval/Dark
Before After
before after
agentSessionsViewer/ApprovalRowLongLabel/Dark
Before After
before after

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 extends the Markdown extension’s webview context-menu contributions so image actions are available in both the standard Markdown preview panel and the Markdown custom editor preview. It fits into the markdown-language-features extension by aligning menu enablement with the existing dual support for markdown.preview and vscode.markdown.preview.editor.

Changes:

  • Update _markdown.copyImage to appear for image context sections in the custom editor preview as well as the standard preview.
  • Update _markdown.openImage to appear for local images in the custom editor preview as well as the standard preview.
Show a summary per file
File Description
extensions/markdown-language-features/package.json Broadens webview/context when clauses to include the Markdown custom editor webview id for image actions.

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 0

@mjbvz mjbvz merged commit d926cd7 into main May 5, 2026
30 checks passed
@mjbvz mjbvz deleted the dev/mjbvz/xeric-swallow branch May 5, 2026 23:56
@vs-code-engineering vs-code-engineering Bot added this to the 1.120.0 milestone May 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants