From 66de915fa0eaac9b140c36e03edc33557a75deb9 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Mon, 1 Feb 2021 23:12:56 -0500 Subject: [PATCH] Changes to use loading icon, rather than sync --- src/git/formatters/commitFormatter.ts | 4 ++-- src/statusbar/statusBarController.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/git/formatters/commitFormatter.ts b/src/git/formatters/commitFormatter.ts index 95079c4..4db54ef 100644 --- a/src/git/formatters/commitFormatter.ts +++ b/src/git/formatters/commitFormatter.ts @@ -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); diff --git a/src/statusbar/statusBarController.ts b/src/statusbar/statusBarController.ts index 9ea8256..e29f273 100644 --- a/src/statusbar/statusBarController.ts +++ b/src/statusbar/statusBarController.ts @@ -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) {