Add missing await

Doesn't seem to cause any issues currently
This commit is contained in:
Matt Bierner
2021-09-14 09:53:51 -07:00
parent d3585388be
commit e43d47e852

View File

@@ -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()));