Browse Source

Changes ellipsis to loading icon for PR loading

main
Eric Amodio 4 years ago
parent
commit
042ca5d0de
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/git/formatters/commitFormatter.ts

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

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

Loading…
Cancel
Save