sessions - update item height when approving (#306146)

This commit is contained in:
Benjamin Pasero
2026-03-29 22:03:23 +02:00
committed by GitHub
parent 0dad7e0453
commit 2e2025216e

View File

@@ -689,11 +689,13 @@ export class SessionsList extends Disposable implements ISessionsList {
const showMoreRenderer = new SessionShowMoreRenderer();
const delegate = new SessionsTreeDelegate(approvalModel);
this.tree = this._register(instantiationService.createInstance(
WorkbenchObjectTree<SessionListItem, FuzzyScore>,
'SessionsListTree',
this.listContainer,
new SessionsTreeDelegate(approvalModel),
delegate,
[
sessionRenderer,
new SessionSectionRenderer(true /* hideSectionCount */, instantiationService, contextKeyService),
@@ -751,7 +753,7 @@ export class SessionsList extends Disposable implements ISessionsList {
this._register(sessionRenderer.onDidChangeItemHeight(session => {
if (this.tree.hasElement(session)) {
this.tree.updateElementHeight(session, undefined);
this.tree.updateElementHeight(session, delegate.getHeight(session));
}
}));