Browse Source

Changes to use loading icon, rather than sync

main
Eric Amodio 3 years ago
parent
commit
66de915fa0
2 changed files with 4 additions and 4 deletions
  1. +2
    -2
      src/git/formatters/commitFormatter.ts
  2. +2
    -2
      src/statusbar/statusBarController.ts

+ 2
- 2
src/git/formatters/commitFormatter.ts View File

@ -318,7 +318,7 @@ export class CommitFormatter extends Formatter {
pr.state
}, ${pr.formatDateFromNow()}")${separator}`;
} else if (pr instanceof Promises.CancellationError) {
commands += `[$(git-pull-request) PR $(sync~spin)](command:${Commands.RefreshHover} "Searching for a Pull Request (if any) that introduced this commit...")${separator}`;
commands += `[$(git-pull-request) PR $(loading~spin)](command:${Commands.RefreshHover} "Searching for a Pull Request (if any) that introduced this commit...")${separator}`;
} else if (pr.provider != null && Container.config.integrations.enabled) {
commands += `[$(plug) Connect to ${pr.provider.name}${
GlyphChars.Ellipsis
@ -507,7 +507,7 @@ export class CommitFormatter extends Formatter {
}
} else if (pr instanceof Promises.CancellationError) {
text = this._options.markdown
? `[PR $(sync~spin)](command:${Commands.RefreshHover} "Searching for a Pull Request (if any) that introduced this commit...")`
? `[PR $(loading~spin)](command:${Commands.RefreshHover} "Searching for a Pull Request (if any) that introduced this commit...")`
: this._options?.pullRequestPendingMessage ?? emptyStr;
} else {
return this._padOrTruncate(emptyStr, this._options.tokenOptions.pullRequest);

+ 2
- 2
src/statusbar/statusBarController.ts View File

@ -132,7 +132,7 @@ export class StatusBarController implements Disposable {
if (clear) {
this.clearBlame();
} else if (this._statusBarBlame != null) {
this._statusBarBlame.text = this._statusBarBlame.text.replace('$(git-commit)', '$(sync~spin)');
this._statusBarBlame.text = this._statusBarBlame.text.replace('$(git-commit)', '$(loading~spin)');
}
}
@ -179,7 +179,7 @@ export class StatusBarController implements Disposable {
getBranchAndTagTips: getBranchAndTagTips,
messageTruncateAtNewLine: true,
pullRequestOrRemote: pr,
pullRequestPendingMessage: 'PR $(sync~spin)',
pullRequestPendingMessage: 'PR $(loading~spin)',
})}`;
switch (cfg.command) {

Loading…
Cancel
Save