Add check and message when *All commands are run with no applicable resources

[?]
Dec 29, 2020, 1:55 AM
VSIDBSWZJMU47QW26SUVEJYKRBQYVMST3KGBMRTDDDJ6IRF3OQDAC

Dependencies

  • [2] MU6ZNUYZ Integrate recordAll command with input box
  • [3] JYMSJCPQ Add command to add all untracked files and fix repository refreshing
  • [4] L44OILGK Add reset command to resource state context menu
  • [5] YUVLBWV3 Populate resource groups for unrecorded and untracked changes
  • [*] B4SKYP3Y Add repository model and add steps to initialize it

Change contents

  • edit in src/repository.ts at line 158
    [2.615]
    [2.615]
    if (this.changedGroup.resourceStates.length === 0) {
    window.showInformationMessage('No Changes to Record');
    return;
    }
  • replacement in src/repository.ts at line 188
    [3.122][3.122:262]()
    for await (const untrackedFile of this.untrackedGroup.resourceStates) {
    await this.repository.addFile(untrackedFile.resourceUri);
    [3.122]
    [3.262]
    if (this.untrackedGroup.resourceStates.length > 0) {
    for await (const untrackedFile of this.untrackedGroup.resourceStates) {
    await this.repository.addFile(untrackedFile.resourceUri);
    }
    } else {
    window.showInformationMessage('No Files to Add');
  • replacement in src/repository.ts at line 201
    [2.1295][2.1295:1333]()
    await this.repository.resetAll();
    [2.1295]
    [3.268]
    if (this.changedGroup.resourceStates.length > 0) {
    await this.repository.resetAll();
    } else {
    window.showInformationMessage('No Changes to Reset');
    }