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.state
}, ${pr.formatDateFromNow()}")${separator}`; }, ${pr.formatDateFromNow()}")${separator}`;
} else if (pr instanceof Promises.CancellationError) { } 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) { } else if (pr.provider != null && Container.config.integrations.enabled) {
commands += `[$(plug) Connect to ${pr.provider.name}${ commands += `[$(plug) Connect to ${pr.provider.name}${
GlyphChars.Ellipsis GlyphChars.Ellipsis
@ -507,7 +507,7 @@ export class CommitFormatter extends Formatter {
} }
} else if (pr instanceof Promises.CancellationError) { } else if (pr instanceof Promises.CancellationError) {
text = this._options.markdown 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; : this._options?.pullRequestPendingMessage ?? emptyStr;
} else { } else {
return this._padOrTruncate(emptyStr, this._options.tokenOptions.pullRequest); 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) { if (clear) {
this.clearBlame(); this.clearBlame();
} else if (this._statusBarBlame != null) { } 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, getBranchAndTagTips: getBranchAndTagTips,
messageTruncateAtNewLine: true, messageTruncateAtNewLine: true,
pullRequestOrRemote: pr, pullRequestOrRemote: pr,
pullRequestPendingMessage: 'PR $(sync~spin)',
pullRequestPendingMessage: 'PR $(loading~spin)',
})}`; })}`;
switch (cfg.command) { switch (cfg.command) {

Loading…
Cancel
Save