/**
* Create a new change with all of the currently unrecorded
* changes
* @param repository The repository to record in
*/
@command('pijul.recordAll', { repository: true })
async recordAll (repository: Repository): Promise<void> {
// TODO: Get message from input box
const message = await window.showInputBox({
placeHolder: 'Change Message',
prompt: 'Please include a message describing what has changed',
ignoreFocusOut: true
});
if (message) {
repository.recordAllChanges(message);
} else {
window.showErrorMessage('Change was not recorded, no message was provided');
}
commands.executeCommand('pijul.refresh');
}