Skip to content

Commit 84c419f

Browse files
committed
Updates repo node tooltip for better clarity
1 parent 2661440 commit 84c419f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/views/nodes/repositoryNode.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export class RepositoryNode extends SubscribeableViewNode<RepositoriesView> {
109109

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

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

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

144144
if (workingStatus) {
145-
tooltip += `\nWorking tree has uncommitted changes${status.getFormattedDiffStatus({
145+
tooltip += `\n\nWorking tree has uncommitted changes${status.getFormattedDiffStatus({
146146
expand: true,
147147
prefix: `\n`,
148148
separator: '\n'

0 commit comments

Comments
 (0)