diff --git a/extensions/markdown-language-features/package.json b/extensions/markdown-language-features/package.json index 3734ba11aafcc..a7ad2979b5319 100644 --- a/extensions/markdown-language-features/package.json +++ b/extensions/markdown-language-features/package.json @@ -126,14 +126,14 @@ "explorer/context": [ { "command": "markdown.showPreview", - "when": "resourceLangId == markdown", + "when": "resourceLangId == markdown && !hasCustomMarkdownPreview", "group": "navigation" } ], "editor/title/context": [ { "command": "markdown.showPreview", - "when": "resourceLangId == markdown", + "when": "resourceLangId == markdown && !hasCustomMarkdownPreview", "group": "1_open" } ],