Explorar el Código

Changes ellipsis to loading icon for PR loading

main
Eric Amodio hace 4 años
padre
commit
042ca5d0de
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. +2
    -2
      src/git/formatters/commitFormatter.ts

+ 2
- 2
src/git/formatters/commitFormatter.ts Ver fichero

@ -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);

Cargando…
Cancelar
Guardar