Enable support for experimental decorators

[?]
Dec 24, 2020, 8:14 PM
LUFSQKUVVHACWQA5Z5OJJDRFZKWILKGB5COOWDLWAU4N6DX5VYSAC

Dependencies

  • [2] YUVLBWV3 Populate resource groups for unrecorded and untracked changes
  • [3] QGP57DI2 Fix handling of empty json diff
  • [4] B4SKYP3Y Add repository model and add steps to initialize it
  • [5] ZGMIJNFV Create pijul.ts for executing commands using the Pijul CLI
  • [*] NCBEWRYE Initialize Repository

Change contents

  • edit in tsconfig.json at line 9
    [7.104500]
    [7.104500]
    "experimentalDecorators": true,
  • replacement in src/repository.ts at line 9
    [3.348][3.348:419]()
    private readonly unrecordedChangesGroup: SourceControlResourceGroup;
    [3.348]
    [3.419]
    private readonly changedGroup: SourceControlResourceGroup;
  • replacement in src/repository.ts at line 26
    [3.1104][3.1104:1221]()
    this.unrecordedChangesGroup = this.sourceControl.createResourceGroup('unrecordedChanges', 'Unrecorded Changes');
    [3.1104]
    [3.1221]
    this.changedGroup = this.sourceControl.createResourceGroup('changed', 'Unrecorded Changes');
  • replacement in src/repository.ts at line 28
    [3.1321][3.1321:1377]()
    this.disposables.push(this.unrecordedChangesGroup);
    [3.1321]
    [3.1377]
    this.disposables.push(this.changedGroup);
  • replacement in src/repository.ts at line 47
    [2.466][2.466:589]()
    this.unrecordedChangesGroup.resourceStates = (await this.repository.getChangedFiles()).map(u => ({ resourceUri: u }));
    [2.466]
    [2.589]
    this.changedGroup.resourceStates = (await this.repository.getChangedFiles()).map(u => ({ resourceUri: u }));
  • replacement in src/pijul.ts at line 204
    [2.2660][2.2660:2721]()
    * Get the list of file URIs which have unrecorded changes
    [2.2660]
    [2.2721]
    * Get the list of file URIs which have unrecorded changes using `pijul diff`