mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-19 08:08:39 +01:00
Don't dispose markdown preview emitters before firing events
Fixes #79827
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user