mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -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;
|
const { activePreviewResource, activePreviewResourceColumn } = this.previewManager;
|
||||||
if (activePreviewResource && activePreviewResourceColumn) {
|
if (activePreviewResource && activePreviewResourceColumn) {
|
||||||
return vscode.workspace.openTextDocument(activePreviewResource).then(document => {
|
return vscode.workspace.openTextDocument(activePreviewResource).then(document => {
|
||||||
vscode.window.showTextDocument(document, activePreviewResourceColumn);
|
return vscode.window.showTextDocument(document, activePreviewResourceColumn);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
return undefined;
|
return undefined;
|
||||||
|
|||||||
Reference in New Issue
Block a user