Add warning message to the resetAll command
[?]
Dec 30, 2020, 1:21 AM
UBNZ7UMTO3STTE3U7XOQNBJMFILGLJ6AO26IFMOR6D7QQXDCVDKQCDependencies
- [2]
MU6ZNUYZIntegrate recordAll command with input box - [3]
YDCLFNEJAdd menu command for recording changes to specific files - [4]
L44OILGKAdd reset command to resource state context menu - [5]
VWRDBPJZAdd command and menu option for adding one or more files to the repository - [6]
H3GAPFUCAdd pijul.recordAll command - [7]
JYMSJCPQAdd command to add all untracked files and fix repository refreshing - [*]
ILH3GIVTAdd command centre and refresh/init commands
Change contents
- replacement in src/commands.ts at line 185
await repository.resetAll();await repository.refreshStatus();const message = `Are you sure you want to reset ${this.repository.changedGroup.resourceStates.length} file(s) to their last recorded state? Any changes will be lost forever.`;const yes = 'Continue';const pick = await window.showWarningMessage(message, { modal: true }, yes);if (pick === yes) {await repository.resetAll();await repository.refreshStatus();}