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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user