BOCCATU2STQRXDDXKEIEFYIHFONOJYZM457UEPBKD7HQPFYA75IAC UBNZ7UMTO3STTE3U7XOQNBJMFILGLJ6AO26IFMOR6D7QQXDCVDKQC 5ISTB4TW2BH52Y7U4XSVQ5PBHWIHIN2Q26V5M25HLWWHKJIPCNOQC VWRDBPJZG6LMTUN2BKCBBPY2LZNJDIJMJ4SFYGXYQFW2XDNXNJPAC YDCLFNEJZCXIHV6SS2XC7WPBPA5QTSLRMVVDLZ3XRJ7QDAISEGHQC ILH3GIVTVMKSU5TH5ZZSPB3URX622JA2BNBOO6K7ZTF4ISYDTJLAC L44OILGKTGXSLQ3A4UQH44AMJXAVZSFISAB6ICHCDB6D42NKUWBQC MU6ZNUYZBFX4HUTJO7HEXCEJ5KTQAMCR4MUKSUDM2MYUFCEAHRDAC GNQD74OZ56J2R23GVUGFP3G5KVML2KDZ4OUZK6SVLSM7HVO2WOCAC await repository.reset(...resourceStates);
if (await commandWarning(`Are you sure you want to reset ${resourceStates.length} file(s) to their last recorded state? Any changes will be lost forever.`)) {await repository.reset(...resourceStates);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) {
if (await commandWarning(`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.`)) {
}/*** Show a warning message to the user before executing a command.* @param message The message to display on the warning message.* @returns A boolean indicating if command execution should continue*/async function commandWarning (message: string): Promise<boolean> {const yes = 'Continue';const pick = await window.showWarningMessage(message, { modal: true }, yes);return pick === yes;