mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-21 09:08:53 +01:00
Experiment with switching markdown extension to use native privates
Let's try this out with one extension to start
This commit is contained in:
@@ -10,14 +10,20 @@ import { MarkdownPreviewManager } from '../preview/previewManager';
|
||||
export class ReloadPlugins implements Command {
|
||||
public readonly id = 'markdown.api.reloadPlugins';
|
||||
|
||||
readonly #webviewManager: MarkdownPreviewManager;
|
||||
readonly #engine: MarkdownItEngine;
|
||||
|
||||
public constructor(
|
||||
private readonly _webviewManager: MarkdownPreviewManager,
|
||||
private readonly _engine: MarkdownItEngine,
|
||||
) { }
|
||||
webviewManager: MarkdownPreviewManager,
|
||||
engine: MarkdownItEngine,
|
||||
) {
|
||||
this.#webviewManager = webviewManager;
|
||||
this.#engine = engine;
|
||||
}
|
||||
|
||||
public execute(): void {
|
||||
this._engine.reloadPlugins();
|
||||
this._engine.cleanCache();
|
||||
this._webviewManager.refresh();
|
||||
this.#engine.reloadPlugins();
|
||||
this.#engine.cleanCache();
|
||||
this.#webviewManager.refresh();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user