mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-20 08:38:56 +01:00
Styling
This commit is contained in:
@@ -399,8 +399,7 @@ export class MarkdownPreview extends Disposable {
|
||||
this.editor.webview.options = MarkdownPreview.getWebviewOptions(resource, this._contributionProvider.contributions);
|
||||
this.editor.webview.html = content;
|
||||
}
|
||||
}
|
||||
catch (e) {
|
||||
} catch {
|
||||
await this.showFileNotFoundError();
|
||||
}
|
||||
}
|
||||
@@ -463,8 +462,7 @@ export class MarkdownPreview extends Disposable {
|
||||
|
||||
try {
|
||||
vscode.workspace.openTextDocument(this._resource).then(vscode.window.showTextDocument);
|
||||
}
|
||||
catch (e) {
|
||||
} catch {
|
||||
await this.showFileNotFoundError();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user