From f7f893cafb7f6f7febc5e2f635c0995c632cd46d Mon Sep 17 00:00:00 2001 From: Ladislau Szomoru <3372902+lszomoru@users.noreply.github.com> Date: Thu, 16 Nov 2023 01:09:58 +0100 Subject: [PATCH] Remove private property as it is not needed any more --- src/vs/workbench/contrib/scm/browser/scmViewPane.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/vs/workbench/contrib/scm/browser/scmViewPane.ts b/src/vs/workbench/contrib/scm/browser/scmViewPane.ts index a072421f09253..9106e15086c4f 100644 --- a/src/vs/workbench/contrib/scm/browser/scmViewPane.ts +++ b/src/vs/workbench/contrib/scm/browser/scmViewPane.ts @@ -2294,7 +2294,6 @@ export class SCMViewPane extends ViewPane { private treeScrollTop: number | undefined; private treeContainer!: HTMLElement; private tree!: WorkbenchCompressibleAsyncDataTree; - private treeDataSource!: SCMTreeDataSource; private listLabels!: ResourceLabels; private inputRenderer!: InputRenderer; @@ -2529,8 +2528,8 @@ export class SCMViewPane extends ViewPane { actionRunner.onWillRun(() => this.tree.domFocus(), this, this.disposables); this.disposables.add(actionRunner); - this.treeDataSource = this.instantiationService.createInstance(SCMTreeDataSource, () => this.viewMode, () => this.alwaysShowRepositories, () => this.showActionButton, () => this.showIncomingChanges, () => this.showOutgoingChanges); - this.disposables.add(this.treeDataSource); + const treeDataSource = this.instantiationService.createInstance(SCMTreeDataSource, () => this.viewMode, () => this.alwaysShowRepositories, () => this.showActionButton, () => this.showIncomingChanges, () => this.showOutgoingChanges); + this.disposables.add(treeDataSource); this.tree = this.instantiationService.createInstance( WorkbenchCompressibleAsyncDataTree, @@ -2549,7 +2548,7 @@ export class SCMViewPane extends ViewPane { this.instantiationService.createInstance(HistoryItemChangeRenderer, () => this.viewMode, this.listLabels), this.instantiationService.createInstance(SeparatorRenderer) ], - this.treeDataSource, + treeDataSource, { horizontalScrolling: false, setRowLineHeight: false,