mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 10:08:49 +01:00
git: better error handling
This commit is contained in:
@@ -70,7 +70,7 @@ export class SyncStatusBar {
|
||||
}
|
||||
|
||||
const HEAD = this.model.HEAD;
|
||||
let icon = '$(sync) ';
|
||||
let icon = '$(sync)';
|
||||
let text = '';
|
||||
|
||||
if (HEAD && HEAD.name && HEAD.commit) {
|
||||
@@ -82,7 +82,7 @@ export class SyncStatusBar {
|
||||
}
|
||||
this.raw.command = 'git.sync';
|
||||
} else {
|
||||
icon = '$(cloud-upload) ';
|
||||
icon = '$(cloud-upload)';
|
||||
this.raw.command = 'git.publish';
|
||||
}
|
||||
} else {
|
||||
@@ -90,7 +90,7 @@ export class SyncStatusBar {
|
||||
this.raw.command = '';
|
||||
}
|
||||
|
||||
this.raw.text = `${icon}${text}`;
|
||||
this.raw.text = [icon, text].join(' ').trim();
|
||||
this.raw.show();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user