Skip to content

Commit

Permalink
Updates repo node tooltip for better clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
eamodio committed Dec 22, 2018
1 parent 2661440 commit 84c419f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/views/nodes/repositoryNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export class RepositoryNode extends SubscribeableViewNode<RepositoriesView> {

const status = await this._status;
if (status !== undefined) {
tooltip += `\n\n${status.branch}`;
tooltip += `\n\nCurrent branch is ${status.branch}`;

if (status.files.length !== 0 && this.includeWorkingTree) {
workingStatus = status.getFormattedDiffStatus({
Expand All @@ -126,8 +126,8 @@ export class RepositoryNode extends SubscribeableViewNode<RepositoriesView> {

iconSuffix = workingStatus ? '-blue' : '';
if (status.upstream !== undefined) {
tooltip += ` is tracking ${status.upstream}\n${status.getUpstreamStatus({
empty: 'up-to-date',
tooltip += ` and is tracking ${status.upstream}\n${status.getUpstreamStatus({
empty: `No commits ahead or behind`,
expand: true,
separator: '\n',
suffix: '\n'
Expand All @@ -142,7 +142,7 @@ export class RepositoryNode extends SubscribeableViewNode<RepositoriesView> {
}

if (workingStatus) {
tooltip += `\nWorking tree has uncommitted changes${status.getFormattedDiffStatus({
tooltip += `\n\nWorking tree has uncommitted changes${status.getFormattedDiffStatus({
expand: true,
prefix: `\n`,
separator: '\n'
Expand Down

0 comments on commit 84c419f

Please sign in to comment.