mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-21 17:19:01 +01:00
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:
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user