Skip to content

Only update viewlet switcher if it has already been rendered#28568

Merged
bpasero merged 2 commits intomicrosoft:masterfrom
nicksnyder:activitybar
Jun 14, 2017
Merged

Only update viewlet switcher if it has already been rendered#28568
bpasero merged 2 commits intomicrosoft:masterfrom
nicksnyder:activitybar

Conversation

@nicksnyder
Copy link
Copy Markdown
Contributor

This avoids a javascript error if unpin is called before the activity bar renders.

This avoids a javascript error if unpin is called before the activity
bar renders.
@bpasero bpasero added this to the June 2017 milestone Jun 13, 2017
this.pinnedViewlets.splice(index, 1);

this.updateViewletSwitcher();
if (this.viewletSwitcherBar) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nicksnyder should we not just move this check into the updateViewletSwitcher method? There are many more places where we call it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, updated.

@nicksnyder nicksnyder changed the title During unpin, only update viewlet switcher if it has already been rendered Only update viewlet switcher if it has already been rendered Jun 13, 2017
@bpasero
Copy link
Copy Markdown
Member

bpasero commented Jun 14, 2017

LGTM

@bpasero bpasero merged commit b33113d into microsoft:master Jun 14, 2017
@nicksnyder nicksnyder deleted the activitybar branch November 2, 2017 17:33
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2020
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.

3 participants