save all and commit fix

This commit is contained in:
Dipen Ved 2019-09-29 19:55:17 +05:30
parent f2d41726ba
commit 6a0c40a0cc

View file

@ -1268,7 +1268,7 @@ export class CommandCenter {
if (pick === saveAndCommit) {
await Promise.all(documents.map(d => d.save()));
await repository.add(documents.map(d => d.uri));
await repository.add([]);
} else if (pick !== commit) {
return false; // do not commit on cancel
}