Skip to content

Commit 37eeb37

Browse files
hypercubestartMatt Bierner
authored andcommitted
quick fix (microsoft#85506)
1 parent 9dbb30e commit 37eeb37

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • extensions/markdown-language-features/src/features

extensions/markdown-language-features/src/features/preview.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,9 @@ export class DynamicMarkdownPreview extends Disposable {
490490
}
491491

492492
private async onDidClickPreview(line: number): Promise<void> {
493+
// fix #82457, find currently opened but unfocused source tab
494+
await vscode.commands.executeCommand('markdown.showSource');
495+
493496
for (const visibleEditor of vscode.window.visibleTextEditors) {
494497
if (this.isPreviewOf(visibleEditor.document.uri)) {
495498
const editor = await vscode.window.showTextDocument(visibleEditor.document, visibleEditor.viewColumn);

0 commit comments

Comments
 (0)