mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 12:19:20 +00:00
quick fix (#85506)
This commit is contained in:
@@ -490,6 +490,9 @@ export class DynamicMarkdownPreview extends Disposable {
|
||||
}
|
||||
|
||||
private async onDidClickPreview(line: number): Promise<void> {
|
||||
// fix #82457, find currently opened but unfocused source tab
|
||||
await vscode.commands.executeCommand('markdown.showSource');
|
||||
|
||||
for (const visibleEditor of vscode.window.visibleTextEditors) {
|
||||
if (this.isPreviewOf(visibleEditor.document.uri)) {
|
||||
const editor = await vscode.window.showTextDocument(visibleEditor.document, visibleEditor.viewColumn);
|
||||
|
||||
Reference in New Issue
Block a user