Skip to content

Commit dfc920b

Browse files
committed
send uris for git.mergeChanges context as objects
That way they undergo uri transformation and the setContext-command will stringify them so that everything works, fixes microsoft#159837
1 parent c59f3a0 commit dfc920b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extensions/git/src/repository.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2056,7 +2056,7 @@ export class Repository implements Disposable {
20562056
this.setCountBadge();
20572057

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

20612061
this._onDidChangeStatus.fire();
20622062

0 commit comments

Comments
 (0)