Browse Source

Fixes context to avoid "working" actions

main
Eric Amodio 4 years ago
parent
commit
0dea049654
1 changed files with 1 additions and 7 deletions
  1. +1
    -7
      src/views/nodes/branchTrackingStatusFilesNode.ts

+ 1
- 7
src/views/nodes/branchTrackingStatusFilesNode.ts View File

@ -101,19 +101,13 @@ export class BranchTrackingStatusFilesNode extends ViewNode {
}
async getTreeItem(): Promise<TreeItem> {
// if (this.status.state.ahead > 0) {
const stats = await Container.git.getChangedFilesCount(this.repoPath, `${this.status.upstream}...`);
const files = stats?.files ?? 0;
// }
const label = `${Strings.pluralize('file', files)} changed`;
const item = new TreeItem(label, TreeItemCollapsibleState.Collapsed);
item.id = this.id;
item.contextValue = ContextValues.StatusFiles;
// item.iconPath = {
// dark: Container.context.asAbsolutePath('images/dark/icon-diff.svg'),
// light: Container.context.asAbsolutePath('images/light/icon-diff.svg'),
// };
item.contextValue = ContextValues.BranchStatusFiles;
return item;
}

Loading…
Cancel
Save