mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-02 06:21:50 +01:00
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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user