Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Fix tree data provider being accessed after disposed" #165944

Closed
wants to merge 1 commit into from

Conversation

sandy081
Copy link
Member

@sandy081 sandy081 commented Nov 9, 2022

Reverts #165087
Fixes #165739

@alexr00 Reverting this fix because it breaks other tree views - settings sync views are no longer showing data

image

@sandy081 sandy081 self-assigned this Nov 9, 2022
@sandy081 sandy081 added this to the November 2022 milestone Nov 9, 2022
@joyceerhl
Copy link
Contributor

This fixes #165739

@alexr00
Copy link
Member

alexr00 commented Nov 10, 2022

I haven't yet been able to come up with another solution that doesn't break the tree. We can revert for now. @joyceerhl and @sandy081 can your trees set the data provider earlier instead of waiting for set visible?

@alexr00
Copy link
Member

alexr00 commented Nov 10, 2022

Actually, I don't see why they couldn't. The tree view constructor is very light after the perf improvements I did last month.

constructor(
readonly id: string,
private _title: string,
@IThemeService private readonly themeService: IThemeService,
@IInstantiationService private readonly instantiationService: IInstantiationService,
@ICommandService private readonly commandService: ICommandService,
@IConfigurationService private readonly configurationService: IConfigurationService,
@IProgressService protected readonly progressService: IProgressService,
@IContextMenuService private readonly contextMenuService: IContextMenuService,
@IKeybindingService private readonly keybindingService: IKeybindingService,
@INotificationService private readonly notificationService: INotificationService,
@IViewDescriptorService private readonly viewDescriptorService: IViewDescriptorService,
@IHoverService private readonly hoverService: IHoverService,
@IContextKeyService private readonly contextKeyService: IContextKeyService,
@IActivityService private readonly activityService: IActivityService,
@ILogService private readonly logService: ILogService
) {
super();
this.root = new Root();
// Try not to add anything that could be costly to this constructor. It gets called once per tree view
// during startup, and anything added here can affect performance.
}

@alexr00
Copy link
Member

alexr00 commented Nov 10, 2022

New PR: #166029

@sandy081
Copy link
Member Author

sandy081 commented Nov 11, 2022

Abandoning this PR in favour of the other, as I did not realise this did not get merged.

@sandy081 sandy081 closed this Nov 11, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Dec 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Edit Sessions tree view no longer populates when running Show Edit Sessions
3 participants