Skip to content

Commit

Permalink
Remove private property as it is not needed any more
Browse files Browse the repository at this point in the history
  • Loading branch information
lszomoru committed Nov 16, 2023
1 parent b70635e commit f7f893c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/vs/workbench/contrib/scm/browser/scmViewPane.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2294,7 +2294,6 @@ export class SCMViewPane extends ViewPane {
private treeScrollTop: number | undefined;
private treeContainer!: HTMLElement;
private tree!: WorkbenchCompressibleAsyncDataTree<ISCMViewService, TreeElement, FuzzyScore>;
private treeDataSource!: SCMTreeDataSource;

private listLabels!: ResourceLabels;
private inputRenderer!: InputRenderer;
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit f7f893c

Please sign in to comment.