mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
Correctly reload markdown preview on md contribution change (#188218)
Fixes #184295
This commit is contained in:
parent
f32187dfe7
commit
19f9f605a9
|
@ -114,6 +114,7 @@ export class MarkdownItEngine implements IMdParser {
|
|||
_contributionProvider.onContributionsChanged(() => {
|
||||
// Markdown plugin contributions may have changed
|
||||
this._md = undefined;
|
||||
this._tokenCache.clean();
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -95,7 +95,7 @@ class MarkdownPreview extends Disposable implements WebviewResourceProvider {
|
|||
}
|
||||
|
||||
this._register(_contributionProvider.onContributionsChanged(() => {
|
||||
setTimeout(() => this.refresh(), 0);
|
||||
setTimeout(() => this.refresh(true), 0);
|
||||
}));
|
||||
|
||||
this._register(vscode.workspace.onDidChangeTextDocument(event => {
|
||||
|
|
Loading…
Reference in a new issue