Skip to content

Commit

Permalink
send uris for git.mergeChanges context as objects (#160390)
Browse files Browse the repository at this point in the history
That way they undergo uri transformation and the setContext-command will stringify them so that everything works, fixes #159837
  • Loading branch information
jrieken committed Sep 8, 2022
1 parent e41b3a8 commit ac55912
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/git/src/repository.ts
Expand Up @@ -2081,7 +2081,7 @@ export class Repository implements Disposable {
this.setCountBadge();

// set mergeChanges context
commands.executeCommand('setContext', 'git.mergeChanges', merge.map(item => item.resourceUri.toString()));
commands.executeCommand('setContext', 'git.mergeChanges', merge.map(item => item.resourceUri));

this._onDidChangeStatus.fire();

Expand Down

0 comments on commit ac55912

Please sign in to comment.