Skip to content

Commit

Permalink
Make sure markdown.showSource correctly awaits opening the document
Browse files Browse the repository at this point in the history
Fixes #132914
  • Loading branch information
mjbvz committed Sep 14, 2021
1 parent 8b48265 commit d358538
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class ShowSourceCommand implements Command {
const { activePreviewResource, activePreviewResourceColumn } = this.previewManager;
if (activePreviewResource && activePreviewResourceColumn) {
return vscode.workspace.openTextDocument(activePreviewResource).then(document => {
vscode.window.showTextDocument(document, activePreviewResourceColumn);
return vscode.window.showTextDocument(document, activePreviewResourceColumn);
});
}
return undefined;
Expand Down

0 comments on commit d358538

Please sign in to comment.