Show Markdown Preview Menu Button For any File Opened as Markdown

Issue #7638

**Bug**
Open a `.txt` file containing markdown in VSCode. Select the editor language as `markdown` and the highlighing kicks in, but there is no preview button for the file.

**Fix**
Base display of the markdown preview button on `resourceScheme` instead of `resourceLangId`.

Closes #7638
This commit is contained in:
Matt Bierner
2016-09-22 11:06:32 -07:00
parent 7baf009e27
commit 9e28d5764c

View File

@@ -73,7 +73,7 @@
"menus": {
"editor/title": [
{
"when": "resourceLangId == markdown",
"when": "editorLangId == markdown",
"command": "markdown.showPreview",
"alt": "markdown.showPreviewToSide",
"group": "navigation"
@@ -86,7 +86,7 @@
],
"explorer/context": [
{
"when": "resourceLangId == markdown",
"when": "editorLangId == markdown",
"command": "markdown.showPreview",
"group": "navigation"
}