Skip to content

Commit

Permalink
Made the default URI label provider customizable.
Browse files Browse the repository at this point in the history
Downstreams can customize and rebind the default URI label provider.

Signed-off-by: Akos Kitta <kittaakos@typefox.io>
  • Loading branch information
Akos Kitta authored and kittaakos committed Jul 31, 2020
1 parent e99e386 commit 09ef844
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/src/browser/frontend-application-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,8 @@ export const frontendApplicationModule = new ContainerModule((bind, unbind, isBo
bindContributionProvider(bind, LabelProviderContribution);
bind(LabelProvider).toSelf().inSingletonScope();
bind(FrontendApplicationContribution).toService(LabelProvider);
bind(LabelProviderContribution).to(DefaultUriLabelProviderContribution).inSingletonScope();
bind(DefaultUriLabelProviderContribution).toSelf().inSingletonScope();
bind(LabelProviderContribution).toService(DefaultUriLabelProviderContribution);
bind(LabelProviderContribution).to(DiffUriLabelProviderContribution).inSingletonScope();

bind(TreeLabelProvider).toSelf().inSingletonScope();
Expand Down

0 comments on commit 09ef844

Please sign in to comment.