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

Implement a horizontal panel for the workbench #2042

Merged
merged 41 commits into from
Jan 19, 2016
Merged

Implement a horizontal panel for the workbench #2042

merged 41 commits into from
Jan 19, 2016

Conversation

isidorn
Copy link
Contributor

@isidorn isidorn commented Jan 15, 2016

Adding horizontal panel to the workbench (see #1875).

@bpasero bpasero added this to the Jan 2016 milestone Jan 15, 2016
@bpasero bpasero changed the title Isidorn/panel Implement a horizontal panel for the workbench Jan 15, 2016
@@ -61,28 +61,28 @@ export class ActivitybarPart extends Part implements IActivityService {
private registerListeners(): void {

// Activate viewlet action on opening of a viewlet
this.toUnbind.push(this.eventService.addListener(EventType.VIEWLET_OPENING, (e: ViewletEvent) => this.onViewletOpening(e)));
this.toUnbind.push(this.eventService.addListener(EventType.VIEWLET_OPENING, (e: CompositeEvent) => this.onViewletOpening(e)));
Copy link
Member

Choose a reason for hiding this comment

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

@isidorn I think we can generalize this event to be COMPOSITE_OPENING and onCompositeOpening() because the listener seems to use the ID of the composite to do something and it also seems to be the only client through out the workbench.

Copy link
Member

Choose a reason for hiding this comment

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

I see why this happens because opening a viewlet and panel is not yet shared in the compositePart, I will comment below about it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

✔️

};

/**
* Composites are layed out in the sidebar part of the workbench. Only one composite can be open
Copy link
Member

Choose a reason for hiding this comment

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

@isidorn would rephrase, it is not just sidebar

Copy link
Contributor Author

Choose a reason for hiding this comment

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

✔️

}

public run(): Promise {
this.partService.setPanelHidden(false);
Copy link
Member

Choose a reason for hiding this comment

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

I guess this should be "true" for closing?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

✔️


.monaco-workbench > .part.panel > .title {
display: block;
border-top: 1px solid #007ACC
Copy link
Member

Choose a reason for hiding this comment

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

@isidorn is this value not dynamic depending on debug, no workspace or workspace? I would check what the statusbar does to set this color.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@bpasero status bar does the same thing, defines a default, and then clients like debug set it to orange. I do the same here.

Copy link
Member

Choose a reason for hiding this comment

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

Ack

isidorn added a commit that referenced this pull request Jan 19, 2016
Implement a horizontal panel for the workbench
@isidorn isidorn merged commit 9199197 into master Jan 19, 2016
@isidorn isidorn deleted the isidorn/panel branch January 21, 2016 08:37
@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