瀏覽代碼

Adds more info to the status nodes

main
Eric Amodio 7 年之前
父節點
當前提交
5cc9365fa1
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      src/views/statusUpstreamNode.ts

+ 2
- 2
src/views/statusUpstreamNode.ts 查看文件

@ -37,8 +37,8 @@ export class StatusUpstreamNode extends ExplorerNode {
async getTreeItem(): Promise<TreeItem> {
const label = this.direction === 'ahead'
? `${this.status.state.ahead} commit${this.status.state.ahead > 1 ? 's' : ''} ahead` // of ${this.status.upstream}`
: `${this.status.state.behind} commit${this.status.state.behind > 1 ? 's' : ''} behind`; // ${this.status.upstream}`;
? `${this.status.state.ahead} commit${this.status.state.ahead > 1 ? 's' : ''} ahead (local changes)` // of ${this.status.upstream}`
: `${this.status.state.behind} commit${this.status.state.behind > 1 ? 's' : ''} behind (remote changes)`; // ${this.status.upstream}`;
const item = new TreeItem(label, TreeItemCollapsibleState.Collapsed);
item.contextValue = this.resourceType;

Loading…
取消
儲存