Skip to content

Commit

Permalink
Set context key on more than just the working tree (#130061)
Browse files Browse the repository at this point in the history
  • Loading branch information
lramos15 authored Aug 3, 2021
1 parent cead2f6 commit 8f58c1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/git/src/repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1916,7 +1916,7 @@ export class Repository implements Disposable {
this.setCountBadge();

// Update context key with changed resources
commands.executeCommand('setContext', 'git.changedResources', workingTree.map(r => r.resourceUri.fsPath.toString()));
commands.executeCommand('setContext', 'git.changedResources', [...merge, ...index, ...workingTree, ...untracked].map(r => r.resourceUri.fsPath.toString()));

this._onDidChangeStatus.fire();

Expand Down

0 comments on commit 8f58c1f

Please sign in to comment.