diff --git a/extensions/markdown-language-features/src/commands/showSource.ts b/extensions/markdown-language-features/src/commands/showSource.ts index 6e4beb43fa..9322b294de 100644 --- a/extensions/markdown-language-features/src/commands/showSource.ts +++ b/extensions/markdown-language-features/src/commands/showSource.ts @@ -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;