add icons for preview and view source

This commit is contained in:
Johannes Rieken
2016-06-16 10:50:37 +02:00
parent f80da3732b
commit 8c2fb77935
4 changed files with 26 additions and 3 deletions

View File

@@ -42,11 +42,30 @@
"commands": [
{
"command": "extension.previewMarkdown",
"title": "%markdown.previewMarkdown.title%"
"title": "%markdown.previewMarkdown.title%",
"context": [{
"where": "editor/primary",
"when": "markdown",
"icon": {
"light": "./media/Preview.svg",
"dark": "./media/Preview_inverse.svg"
}
},{
"where": "editor/primary",
"when": { "scheme": "markdown" },
"icon": {
"light": "./media/ViewSource.svg",
"dark": "./media/ViewSource_inverse.svg"
}
}]
},
{
"command": "extension.previewMarkdownSide",
"title": "%markdown.previewMarkdownSide.title%"
"title": "%markdown.previewMarkdownSide.title%",
"context": {
"where": "editor/secondary",
"when": "markdown"
}
}
],
"keybindings": [