Skip to content

Commit 3a01780

Browse files
authored
Merge pull request microsoft#81609 from vedipen/saveAllAndCommitFix
Save all and commit fix
2 parents 3259fbf + 6a0c40a commit 3a01780

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

extensions/git/src/commands.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1268,7 +1268,7 @@ export class CommandCenter {
12681268

12691269
if (pick === saveAndCommit) {
12701270
await Promise.all(documents.map(d => d.save()));
1271-
await repository.add(documents.map(d => d.uri));
1271+
await repository.add([]);
12721272
} else if (pick !== commit) {
12731273
return false; // do not commit on cancel
12741274
}

0 commit comments

Comments
 (0)