Only show the markdown refresh preview command when preview is active or you are in a markdown file

This commit is contained in:
Matt Bierner 2019-02-27 18:28:24 -08:00
parent 4516dd8ce6
commit f62d1f25f3

View file

@ -153,6 +153,14 @@
{
"command": "markdown.preview.toggleLock",
"when": "markdownPreviewFocus"
},
{
"command": "markdown.preview.refresh",
"when": "editorLangId == markdown"
},
{
"command": "markdown.preview.refresh",
"when": "markdownPreviewFocus"
}
]
},
@ -315,4 +323,4 @@
"webpack": "^4.1.0",
"webpack-cli": "^2.0.10"
}
}
}