Skip to content

Add activePanel context key #49971

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

Merged
merged 1 commit into from
May 18, 2018
Merged

Add activePanel context key #49971

merged 1 commit into from
May 18, 2018

Conversation

Krzysztof-Cieslak
Copy link
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
@@ -277,6 +299,10 @@ export class PanelPart extends CompositePart<Panel> implements IPanelService {
}
return this.toolBar.getItemsWidth();
}

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

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
Contributor

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
Contributor

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
Contributor

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