-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
Declarative contribution of custom Tree Explorer #14048
Conversation
@octref, thanks for your PR! By analyzing the history of the files in this pull request, we identified @isidorn, @egamma and @joaomoreno to be potential reviewers. |
@octref can you please resolve the merge conflicts? |
@bpasero Rebased on master. |
Disable hygiene for now.
Revisit after discussing Viewlet ordering
Addressed all comments, and some of your additional feedbacks. Will leave progress bar and badge for post merge. Let me know what else you want to me to change. |
@octref looks a lot better, there is only one thing I am not sure about in Previously: the check for Now: you seem to never open a viewlet if Also I wonder if we can move the logic about extension viewlets into the viewlet service. |
If I understand correctly:
is this what you meant?
Sure, will do. |
@octref I realize that the name |
@bpasero Made changes as you requested. Decided to put the logic in a dedicated |
Good News. Thank you. |
PR for #12163.
Main changes:
contributes.explorer
section for letting extension add custom tree explorersTreeExplorerNodeProvider<T>
in vscode namespaceregisterTreeExplorerNodeProvider(providerId: string, provider: TreeExplorerNodeProvider<any>): Disposable
in vscode namespacevs/workbench/parts/explorers/*
Not yet implemented:
TreeExplorerNodeProvider.provideRootNode
andTreeExplorerNodeProvider.resolveChildren
by adding a progress bar.TreeExplorerNodeProvider
's methods.TreeExplorerNodeProvider
found-webkit-filter
and opacity to style user defined activity bar icons to indicate activation.High level flow
package.json
get read.ViewletDescriptor
for external viewlets get registered atViewletRegistry
ActivitybarPart
adds icons for external viewlets when external viewlets finish registrationExamples
src/token.ts
.