Skip to content

migrate search to use new setting - #89190

Merged
SteVen Batten (sbatten) merged 5 commits into
microsoft:masterfrom
sbatten:searchViewUpdate
Jan 24, 2020
Merged

SteVen Batten (sbatten) merged 5 commits into
microsoft:masterfrom
sbatten:searchViewUpdate

Conversation

@sbatten

@sbatten SteVen Batten (sbatten) commented Jan 23, 2020 •

Copy link
Copy Markdown
Member

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.

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.

LGTM

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

actionRunner: this.getActionRunner(),
expanded: !collapsed
expanded: !collapsed,
location: currentLocation

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.

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

return undefined;
}

getActiveViewById(id: string): IView | null {

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.

Better name is getActiveViewWithId ?

@sbatten
SteVen Batten (sbatten) merged commit 481923c into microsoft:master Jan 24, 2020
@sbatten
SteVen Batten (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