Don't dispose markdown preview emitters before firing events
Fixes #79827
This commit is contained in:
parent
4eef1c0dfb
commit
a66e9d4835
1 changed files with 1 additions and 1 deletions
|
@ -271,7 +271,6 @@ export class MarkdownPreview extends Disposable {
|
|||
}
|
||||
|
||||
public dispose() {
|
||||
super.dispose();
|
||||
if (this._disposed) {
|
||||
return;
|
||||
}
|
||||
|
@ -282,6 +281,7 @@ export class MarkdownPreview extends Disposable {
|
|||
|
||||
this._onDidChangeViewStateEmitter.dispose();
|
||||
this.editor.dispose();
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
public update(resource: vscode.Uri) {
|
||||
|
|
Loading…
Reference in a new issue