Allow to show status bar entries with an id and name (fix #74972)

This commit is contained in:
Benjamin Pasero
2021-05-19 14:03:28 +02:00
parent f23f011f55
commit 159479eb5a
31 changed files with 212 additions and 167 deletions

View File

@@ -179,7 +179,8 @@ export class GitHubServer {
private updateStatusBarItem(isStart?: boolean) {
if (isStart && !this._statusBarItem) {
this._statusBarItem = vscode.window.createStatusBarItem(vscode.StatusBarAlignment.Left);
this._statusBarItem = vscode.window.createStatusBarItem('status.git.signIn', vscode.StatusBarAlignment.Left);
this._statusBarItem.name = localize('status.git.signIn.name', "GitHub Sign-in");
this._statusBarItem.text = this.type === AuthProviderType.github
? localize('signingIn', "$(mark-github) Signing in to github.com...")
: localize('signingInEnterprise', "$(mark-github) Signing in to {0}...", this.getServerUri().authority);