mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-25 17:27:26 +01:00
19 lines
719 B
TypeScript
19 lines
719 B
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
import { Command } from '../commandManager';
|
|
import { MarkdownPreviewManager } from '../features/previewManager';
|
|
|
|
export class RefreshPreviewCommand implements Command {
|
|
public readonly id = 'markdown.preview.refresh';
|
|
|
|
public constructor(
|
|
private readonly webviewManager: MarkdownPreviewManager
|
|
) { }
|
|
|
|
public execute() {
|
|
this.webviewManager.refresh();
|
|
}
|
|
} |