From 84c419f548312609c855d8bb4662fabde2bb3eef Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Sat, 22 Dec 2018 14:50:14 -0500 Subject: [PATCH] Updates repo node tooltip for better clarity --- src/views/nodes/repositoryNode.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/nodes/repositoryNode.ts b/src/views/nodes/repositoryNode.ts index 9deac0c..9731599 100644 --- a/src/views/nodes/repositoryNode.ts +++ b/src/views/nodes/repositoryNode.ts @@ -109,7 +109,7 @@ export class RepositoryNode extends SubscribeableViewNode { 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({ @@ -126,8 +126,8 @@ export class RepositoryNode extends SubscribeableViewNode { 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' @@ -142,7 +142,7 @@ export class RepositoryNode extends SubscribeableViewNode { } 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'