Dispose events

https://github.com/microsoft/vscode/issues/155232

The events that is setup for needs to be disposed for js to be able
to garbage collect the terminals.
This commit is contained in:
Svante Boberg
2022-07-23 13:28:52 +02:00
parent 92855ba399
commit 9df996cb3d
4 changed files with 19 additions and 0 deletions
+6
View File
@@ -53,6 +53,12 @@ export class Linkifier implements ILinkifier {
};
}
public dispose(): void {
this._onShowLinkUnderline.dispose();
this._onHideLinkUnderline.dispose();
this._onLinkTooltip.dispose();
}
/**
* Attaches the linkifier to the DOM, enabling linkification.
* @param mouseZoneManager The mouse zone manager to register link zones with.