mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-14 03:58:33 -05:00
Make sure markdown.showSource correctly awaits opening the document (#19289)
Fixes #132914 Co-authored-by: Matt Bierner <matb@microsoft.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user