Skip to content

Add activePanel context key#49971

Merged
isidorn merged 1 commit intomicrosoft:masterfrom
Krzysztof-Cieslak:addIsPanelVisible
May 18, 2018
Merged

Add activePanel context key#49971
isidorn merged 1 commit intomicrosoft:masterfrom
Krzysztof-Cieslak:addIsPanelVisible

Conversation

@Krzysztof-Cieslak
Copy link
Copy Markdown
Contributor

Fix #44372

CC: @isidorn

@isidorn isidorn self-assigned this May 16, 2018
@isidorn isidorn added this to the May 2018 milestone May 16, 2018
}

dispose(): void {
this.disposables = dispose(this.disposables);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Please call super.dispose()

const id = viewlet.getId();

if (this.activePanelContextKey.get() === id) {
this.activePanelContextKey.set('');
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Please call .reset instead

@isidorn
Copy link
Copy Markdown
Collaborator

isidorn commented May 17, 2018

@Krzysztof-Cieslak Thanks for the PR. It looks good to me, I left two minor comments.
Once you adress them I will merge this in

@isidorn isidorn merged commit c3e6a8e into microsoft:master May 18, 2018
@isidorn
Copy link
Copy Markdown
Collaborator

isidorn commented May 18, 2018

Actually merging this in and adding the minor things on top. Thanks a lot!

@github-actions github-actions Bot locked and limited conversation to collaborators Mar 29, 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.

Add context for when Output is Focused / Visible

2 participants