Browse Source

Updates repo node tooltip for better clarity

main
Eric Amodio 6 years ago
parent
commit
84c419f548
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      src/views/nodes/repositoryNode.ts

+ 4
- 4
src/views/nodes/repositoryNode.ts View File

@ -109,7 +109,7 @@ export class RepositoryNode extends SubscribeableViewNode {
const status = await this._status; const status = await this._status;
if (status !== undefined) { if (status !== undefined) {
tooltip += `\n\n${status.branch}`;
tooltip += `\n\nCurrent branch is ${status.branch}`;
if (status.files.length !== 0 && this.includeWorkingTree) { if (status.files.length !== 0 && this.includeWorkingTree) {
workingStatus = status.getFormattedDiffStatus({ workingStatus = status.getFormattedDiffStatus({
@ -126,8 +126,8 @@ export class RepositoryNode extends SubscribeableViewNode {
iconSuffix = workingStatus ? '-blue' : ''; iconSuffix = workingStatus ? '-blue' : '';
if (status.upstream !== undefined) { 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, expand: true,
separator: '\n', separator: '\n',
suffix: '\n' suffix: '\n'
@ -142,7 +142,7 @@ export class RepositoryNode extends SubscribeableViewNode {
} }
if (workingStatus) { if (workingStatus) {
tooltip += `\nWorking tree has uncommitted changes${status.getFormattedDiffStatus({
tooltip += `\n\nWorking tree has uncommitted changes${status.getFormattedDiffStatus({
expand: true, expand: true,
prefix: `\n`, prefix: `\n`,
separator: '\n' separator: '\n'

Loading…
Cancel
Save