Add command to open file to source control resources

[?]
Dec 29, 2020, 2:40 AM
FAMBRMO7FCFPW46BVLV43QN6QXXLBWZZXFKPALRDFGVL2DRXWVFQC

Dependencies

  • [2] YDCLFNEJ Add menu command for recording changes to specific files
  • [*] ILH3GIVT Add command centre and refresh/init commands
  • [*] H3GAPFUC Add pijul.recordAll command
  • [*] NCBEWRYE Initialize Repository
  • [*] MU6ZNUYZ Integrate recordAll command with input box
  • [*] L44OILGK Add reset command to resource state context menu

Change contents

  • edit in src/commands.ts at line 187
    [5.1346]
    [4.3971]
    /**
    * Open a given resource for editing
    * @param resourceStates The resources to open
    */
    @command('pijul.openFile')
    async openFile (...resourceStates: SourceControlResourceState[]): Promise<void> {
    for await (const resourceState of resourceStates) {
    await commands.executeCommand('vscode.open', resourceState.resourceUri);
    }
    }
  • edit in package.json at line 65
    [7.1961]
    [7.1961]
    "category": "Pijul"
    },
    {
    "command": "pijul.openFile",
    "title": "Open File",
  • edit in package.json at line 123
    [8.1551]
    [2.2304]
    "command": "pijul.openFile",
    "when": "scmProvider == pijul",
    "group": "all"
    },
    {