Add experimental webview editor based markdown preview

Potentially for #54776, #2766
This commit is contained in:
Matt Bierner
2019-11-07 23:17:35 -08:00
parent 43a2ca8840
commit 8236f06bfc
3 changed files with 72 additions and 25 deletions

View File

@@ -25,7 +25,8 @@
"onCommand:markdown.showSource",
"onCommand:markdown.showPreviewSecuritySelector",
"onCommand:markdown.api.render",
"onWebviewPanel:markdown.preview"
"onWebviewPanel:markdown.preview",
"onWebviewEditor:vscode.markdown.preview.editor"
],
"contributes": {
"commands": [
@@ -307,6 +308,18 @@
],
"markdown.previewScripts": [
"./media/index.js"
],
"webviewEditors": [
{
"viewType": "vscode.markdown.preview.editor",
"displayName": "(Experimental) VS Code Markdown Preview",
"priority": "option",
"selector": [
{
"filenamePattern": "*.md"
}
]
}
]
},
"scripts": {