mirror of
https://github.com/Microsoft/vscode
synced 2024-09-18 01:58:27 +00:00
use add instead of stage
This commit is contained in:
parent
5a40f525bc
commit
59e3396c27
|
@ -1249,7 +1249,7 @@ export class CommandCenter {
|
|||
|
||||
if (pick === saveAndCommit) {
|
||||
await Promise.all(unsavedTextDocuments.map(d => d.save()));
|
||||
await Promise.all(unsavedTextDocuments.map(d => repository.stage(d.uri, d.getText())));
|
||||
await repository.add(unsavedTextDocuments.map(d => d.uri));
|
||||
await repository.status();
|
||||
} else if (pick !== commit) {
|
||||
return false; // do not commit on cancel
|
||||
|
|
Loading…
Reference in a new issue