mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
save all and commit fix
This commit is contained in:
parent
f2d41726ba
commit
6a0c40a0cc
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue