|
@ -1,5 +1,5 @@ |
|
|
'use strict'; |
|
|
'use strict'; |
|
|
import { ThemeIcon, TreeItem, TreeItemCollapsibleState, window } from 'vscode'; |
|
|
|
|
|
|
|
|
import { ThemeColor, ThemeIcon, TreeItem, TreeItemCollapsibleState, window } from 'vscode'; |
|
|
import { BranchNode } from './branchNode'; |
|
|
import { BranchNode } from './branchNode'; |
|
|
import { BranchTrackingStatusFilesNode } from './branchTrackingStatusFilesNode'; |
|
|
import { BranchTrackingStatusFilesNode } from './branchTrackingStatusFilesNode'; |
|
|
import { CommitNode } from './commitNode'; |
|
|
import { CommitNode } from './commitNode'; |
|
@ -141,7 +141,7 @@ export class BranchTrackingStatusNode extends ViewNode implement |
|
|
contextValue = this.root |
|
|
contextValue = this.root |
|
|
? ContextValues.StatusAheadOfUpstream |
|
|
? ContextValues.StatusAheadOfUpstream |
|
|
: ContextValues.BranchStatusAheadOfUpstream; |
|
|
: ContextValues.BranchStatusAheadOfUpstream; |
|
|
icon = 'cloud-upload'; |
|
|
|
|
|
|
|
|
icon = new ThemeIcon('cloud-upload', new ThemeColor('gitlens.viewChangesToPushIconColor')); |
|
|
|
|
|
|
|
|
break; |
|
|
break; |
|
|
|
|
|
|
|
@ -156,7 +156,7 @@ export class BranchTrackingStatusNode extends ViewNode implement |
|
|
contextValue = this.root |
|
|
contextValue = this.root |
|
|
? ContextValues.StatusBehindUpstream |
|
|
? ContextValues.StatusBehindUpstream |
|
|
: ContextValues.BranchStatusBehindUpstream; |
|
|
: ContextValues.BranchStatusBehindUpstream; |
|
|
icon = 'cloud-download'; |
|
|
|
|
|
|
|
|
icon = new ThemeIcon('cloud-download', new ThemeColor('gitlens.viewChangesToPullIconColor')); |
|
|
|
|
|
|
|
|
break; |
|
|
break; |
|
|
|
|
|
|
|
@ -167,7 +167,7 @@ export class BranchTrackingStatusNode extends ViewNode implement |
|
|
|
|
|
|
|
|
collapsibleState = TreeItemCollapsibleState.None; |
|
|
collapsibleState = TreeItemCollapsibleState.None; |
|
|
contextValue = this.root ? ContextValues.StatusSameAsUpstream : undefined; |
|
|
contextValue = this.root ? ContextValues.StatusSameAsUpstream : undefined; |
|
|
icon = 'cloud'; |
|
|
|
|
|
|
|
|
icon = new ThemeIcon('cloud'); |
|
|
|
|
|
|
|
|
break; |
|
|
break; |
|
|
|
|
|
|
|
@ -177,7 +177,7 @@ export class BranchTrackingStatusNode extends ViewNode implement |
|
|
|
|
|
|
|
|
collapsibleState = TreeItemCollapsibleState.None; |
|
|
collapsibleState = TreeItemCollapsibleState.None; |
|
|
contextValue = this.root ? ContextValues.StatusNoUpstream : undefined; |
|
|
contextValue = this.root ? ContextValues.StatusNoUpstream : undefined; |
|
|
icon = 'cloud-upload'; |
|
|
|
|
|
|
|
|
icon = new ThemeIcon('cloud-upload', new ThemeColor('gitlens.viewChangesToPushIconColor')); |
|
|
|
|
|
|
|
|
break; |
|
|
break; |
|
|
} |
|
|
} |
|
@ -189,7 +189,7 @@ export class BranchTrackingStatusNode extends ViewNode implement |
|
|
if (lastFetched) { |
|
|
if (lastFetched) { |
|
|
tooltip += `\nLast fetched ${Dates.getFormatter(new Date(lastFetched)).fromNow()}`; |
|
|
tooltip += `\nLast fetched ${Dates.getFormatter(new Date(lastFetched)).fromNow()}`; |
|
|
} |
|
|
} |
|
|
item.iconPath = new ThemeIcon(icon); |
|
|
|
|
|
|
|
|
item.iconPath = icon; |
|
|
item.tooltip = tooltip; |
|
|
item.tooltip = tooltip; |
|
|
|
|
|
|
|
|
return item; |
|
|
return item; |
|
|