mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 20:13:32 +01:00
Add commands to insert images/links in markdown (#163706)
* Add commands to insert images/links in markdown Fixes #162809 * Rename commands and allow passing in uris * Support selecting many images/files
This commit is contained in:
@@ -30,6 +30,8 @@
|
||||
"onCommand:markdown.api.render",
|
||||
"onCommand:markdown.api.reloadPlugins",
|
||||
"onCommand:markdown.findAllFileReferences",
|
||||
"onCommand:markdown.editor.insertLinkFromWorkspace",
|
||||
"onCommand:markdown.editor.insertImageFromWorkspace",
|
||||
"onWebviewPanel:markdown.preview",
|
||||
"onCustomEditor:vscode.markdown.preview.editor"
|
||||
],
|
||||
@@ -175,6 +177,18 @@
|
||||
"command": "markdown.findAllFileReferences",
|
||||
"title": "%markdown.findAllFileReferences%",
|
||||
"category": "Markdown"
|
||||
},
|
||||
{
|
||||
"command": "markdown.editor.insertLinkFromWorkspace",
|
||||
"title": "%markdown.editor.insertLinkFromWorkspace%",
|
||||
"category": "Markdown",
|
||||
"enablement": "editorLangId == markdown"
|
||||
},
|
||||
{
|
||||
"command": "markdown.editor.insertImageFromWorkspace",
|
||||
"title": "%markdown.editor.insertImageFromWorkspace%",
|
||||
"category": "Markdown",
|
||||
"enablement": "editorLangId == markdown"
|
||||
}
|
||||
],
|
||||
"menus": {
|
||||
|
||||
Reference in New Issue
Block a user