mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-02 08:15:56 +01:00
sessions - update item height when approving (#306146)
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user