From 9e28d5764cdac6c2b30b6b0bc3b7b7c74e8d2c8a Mon Sep 17 00:00:00 2001 From: Matt Bierner Date: Thu, 22 Sep 2016 11:06:32 -0700 Subject: [PATCH] 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 --- extensions/markdown/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/markdown/package.json b/extensions/markdown/package.json index 5207869953e..0a78c5d08eb 100644 --- a/extensions/markdown/package.json +++ b/extensions/markdown/package.json @@ -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" }