-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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
Conversation
There was a problem hiding this 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 |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better name is getActiveViewWithId
?
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 exposingViewPaneContainer
functionality to support getting an IView/ViewPane by id.