From 666e2b1bafd8683a21f7e05a315b69fb6213b524 Mon Sep 17 00:00:00 2001 From: yzhang <7588612+yzhang-gh@users.noreply.github.com> Date: Sat, 21 Oct 2023 22:51:37 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=AC=20add=20comments?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/preview.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/preview.ts b/src/preview.ts index be11f085..8552ad4c 100644 --- a/src/preview.ts +++ b/src/preview.ts @@ -55,6 +55,7 @@ function registerAutoPreview() { // VS Code dispatches a series of DidChangeActiveTextEditor events when moving tabs between groups, we don't want most of them. function triggerAutoPreview(editor: vscode.TextEditor | undefined): void { + // GitHub issues #1282, #1342 const markdownRe = /(\.md|\.markdown)$/i if (!(editor && editor.document.uri.scheme === 'file' && markdownRe.test(editor.document.fileName))) { return;