Skip to content

Commit

Permalink
Add missing await
Browse files Browse the repository at this point in the history
Doesn't seem to cause any issues currently
  • Loading branch information
mjbvz committed Sep 14, 2021
1 parent d358538 commit e43d47e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ class MarkdownPreview extends Disposable implements WebviewResourceProvider {
}
}

vscode.workspace.openTextDocument(this._resource)
await vscode.workspace.openTextDocument(this._resource)
.then(vscode.window.showTextDocument)
.then(undefined, () => {
vscode.window.showErrorMessage(localize('preview.clickOpenFailed', 'Could not open {0}', this._resource.toString()));
Expand Down

0 comments on commit e43d47e

Please sign in to comment.