Skip to content

Commit

Permalink
removed automaticallyShowPreviewOfMarkdownBeingEdited
Browse files Browse the repository at this point in the history
  • Loading branch information
shd101wyy committed Jun 14, 2017
1 parent ba3187f commit 67988d5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
5 changes: 0 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,6 @@
"default": true,
"type": "boolean"
},
"markdown-preview-enhanced.automaticallyShowPreviewOfMarkdownBeingEdited": {
"description": "Automatically show preview of markdown being edited",
"default": false,
"type": "boolean"
},
"markdown-preview-enhanced.enableTypographer": {
"description": "Enable smartypants and other sweet transforms.",
"default": false,
Expand Down
3 changes: 2 additions & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ export function activate(context: vscode.ExtensionContext) {
* Open preview automatically if the `automaticallyShowPreviewOfMarkdownBeingEdited` is on.
* @param textEditor
*/
/*
function openPreviewAutomatically(textEditor:vscode.TextEditor) {
if (!textEditor) return
Expand Down Expand Up @@ -129,7 +130,7 @@ export function activate(context: vscode.ExtensionContext) {
openPreviewAutomatically(textEditor)
}))
/*
context.subscriptions.push(vscode.window.onDidChangeVisibleTextEditors(textEditors=> {
// console.log('onDidChangeonDidChangeVisibleTextEditors ', textEditors)
}))
Expand Down
2 changes: 1 addition & 1 deletion src/puml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export async function render(content:string, fileDirectoryPath:string=""):Promis

let startMatch;
if (startMatch = content.match(/^\@start(.+?)\s+/m)) {
if (content.match(new RegExp("^\\@end#{startMatch[1]}", 'm')))
if (content.match(new RegExp(`^\\@end${startMatch[1]}`, 'm')))
null // do nothing
else
content = "@startuml\n@enduml" // error
Expand Down

0 comments on commit 67988d5

Please sign in to comment.