allow images in markdown preview editor to be copied (#184432)

* allow images in markdown preview editor to be copied

* resolved feedback

* added findPreview method

* removed copy image command from showPreview

* clean up

---------

Co-authored-by: Meghan Kulkarni <t-mekulkarni@microsoft.com>
This commit is contained in:
MeghanKulkarni
2023-06-07 11:08:22 -07:00
committed by GitHub
parent 218c6d4f9b
commit 67cc0965b3
8 changed files with 120 additions and 1 deletions

View File

@@ -121,6 +121,10 @@
}
],
"commands": [
{
"command": "_markdown.copyImage",
"title": "%markdown.copyImage.title%"
},
{
"command": "markdown.showPreview",
"title": "%markdown.preview.title%",
@@ -182,6 +186,12 @@
}
],
"menus": {
"webview/context": [
{
"command": "_markdown.copyImage",
"when": "webviewId == 'markdown.preview' && webviewSection == 'image'"
}
],
"editor/title": [
{
"command": "markdown.showPreviewToSide",