mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-09 01:28:50 +01:00
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user