🐛 show current scm provider in viewlet title

fixes #23437
This commit is contained in:
Joao Moreno
2017-03-30 16:26:01 +02:00
parent 658643a31c
commit f6dfd2fae1
@@ -360,6 +360,17 @@ export class SCMViewlet extends Viewlet {
.done(undefined, onUnexpectedError);
}
getTitle(): string {
const title = localize('source control', "Source Control");
const providerLabel = this.scmService.activeProvider && this.scmService.activeProvider.label;
if (providerLabel) {
return localize('viewletTitle', "{0}: {1}", title, providerLabel);
} else {
return title;
}
}
getActions(): IAction[] {
return this.menus.getTitleActions();
}