Skip to content

Commit

Permalink
Properly implement disposeCompressedElements (#162972)
Browse files Browse the repository at this point in the history
  • Loading branch information
roblourens authored Oct 7, 2022
1 parent ca48f75 commit 6d85cd9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/vs/workbench/contrib/debug/browser/callStackView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,10 @@ class SessionsRenderer implements ICompressibleTreeRenderer<IDebugSession, Fuzzy
disposeElement(_element: ITreeNode<IDebugSession, FuzzyScore>, _: number, templateData: ISessionTemplateData): void {
templateData.elementDisposable.clear();
}

disposeCompressedElements(node: ITreeNode<ICompressedTreeNode<IDebugSession>, FuzzyScore>, index: number, templateData: ISessionTemplateData, height: number | undefined): void {
templateData.elementDisposable.clear();
}
}

function getThreadContextOverlay(thread: IThread): [string, any][] {
Expand Down Expand Up @@ -691,6 +695,10 @@ class ThreadsRenderer implements ICompressibleTreeRenderer<IThread, FuzzyScore,
templateData.elementDisposable.clear();
}

disposeCompressedElements(node: ITreeNode<ICompressedTreeNode<IThread>, FuzzyScore>, index: number, templateData: IThreadTemplateData, height: number | undefined): void {
templateData.elementDisposable.clear();
}

disposeTemplate(templateData: IThreadTemplateData): void {
templateData.templateDisposable.dispose();
}
Expand Down

0 comments on commit 6d85cd9

Please sign in to comment.