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

migrate search to use new setting #89190

Merged
merged 5 commits into from
Jan 24, 2020
Merged

Conversation

sbatten
Copy link
Member

@sbatten sbatten commented Jan 23, 2020

This PR refs #85164

In order for this to work, search needed a way to get the proper bg color and progress location. This was handled by extending ViewPane.

Additionally many helper methods needed a way to get the SearchView object. This was handled by extending IViewsService to get the current active composite by container id and exposing ViewPaneContainer functionality to support getting an IView/ViewPane by id.

@sbatten sbatten self-assigned this Jan 23, 2020
@sbatten sbatten added this to the January 2020 milestone Jan 23, 2020
Copy link
Member

@sandy081 sandy081 left a comment

Choose a reason for hiding this comment

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

LGTM

I would go ahead and adopt background and progress location changes for all views.

for (const { viewDescriptor, collapsed, index, size } of added) {
const pane = this.createView(viewDescriptor,
{
id: viewDescriptor.id,
title: viewDescriptor.name,
actionRunner: this.getActionRunner(),
expanded: !collapsed
expanded: !collapsed,
location: currentLocation
Copy link
Member

Choose a reason for hiding this comment

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

why does location need to be passed? ViewPane can get the location from IViewDescriptorService ?

@@ -565,6 +566,27 @@ export class ViewsService extends Disposable implements IViewsService {
return undefined;
}

getActiveViewById(id: string): IView | null {
Copy link
Member

Choose a reason for hiding this comment

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

Better name is getActiveViewWithId ?

@sbatten sbatten merged commit 481923c into microsoft:master Jan 24, 2020
@sbatten sbatten deleted the searchViewUpdate branch January 24, 2020 16:31
@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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants