Add commands to copy the hash and message of changes in the log

[?]
Jan 5, 2021, 12:16 AM
5ISTB4TW2BH52Y7U4XSVQ5PBHWIHIN2Q26V5M25HLWWHKJIPCNOQC

Dependencies

  • [2] GNQD74OZ Add pijul.openChange command and text document provider for pijul-change scheme
  • [3] VP6KWIRT Add inline icons for commands on SCM view
  • [4] FAMBRMO7 Add command to open file to source control resources
  • [5] ILH3GIVT Add command centre and refresh/init commands
  • [6] ODRMVURU Implement first iteration of file diffing
  • [7] L3VOQYAF Add changelog view to the source control panel
  • [8] 6H4B4UJQ Add commands to open repo and global pijul configuration files
  • [*] NCBEWRYE Initialize Repository

Change contents

  • replacement in src/commands.ts at line 3
    [3.126][3.126:240]()
    import { commands, Disposable, OutputChannel, SourceControlResourceState, Uri, window, workspace } from 'vscode';
    [3.126]
    [2.1275]
    import { commands, Disposable, env, OutputChannel, SourceControlResourceState, Uri, window, workspace } from 'vscode';
  • replacement in src/commands.ts at line 242
    [2.1381][2.1381:1430]()
    * @param resourceStates The resources to open
    [2.1381]
    [2.1430]
    * @param change The change top open
  • edit in src/commands.ts at line 247
    [2.1589][2.1589:1617]()
    console.log(changeUri);
  • edit in src/commands.ts at line 251
    [2.1689]
    [3.258]
    * Copy the hash of a change to the clipboard
    * @param change The resources to copy the hash of
    */
    @command('pijul.copyChangeHash')
    async copyChangeHash (change: PijulChange): Promise<void> {
    env.clipboard.writeText(change.hash);
    }
    /**
    * Copy the message of a change to the clipboard
    * @param change The resources to copy the message of
    */
    @command('pijul.copyChangeMessage')
    async copyChangeMessage (change: PijulChange): Promise<void> {
    env.clipboard.writeText(change.message);
    }
    /**
  • edit in package.json at line 94
    [2.1758]
    [2.1758]
    "category": "Pijul"
    },
    {
    "command": "pijul.copyChangeHash",
    "title": "Copy Change Hash",
    "category": "Pijul"
    },
    {
    "command": "pijul.copyChangeMessage",
    "title": "Copy Change Message",
  • replacement in package.json at line 227
    [3.1168][3.1604:1615]()
    },
    [3.1168]
    [3.1175]
    },
  • replacement in package.json at line 266
    [2.1832][2.1832:1936]()
    "command": "pijul.openChange",
    "when": "view == pijul.views.log && viewItem == pijulChange"
    [2.1832]
    [2.1936]
    "command": "pijul.openChange",
    "when": "view == pijul.views.log && viewItem == pijulChange"
    },
    {
    "command": "pijul.copyChangeHash",
    "when": "view == pijul.views.log && viewItem == pijulChange",
    "group": "change"
    },
    {
    "command": "pijul.copyChangeMessage",
    "when": "view == pijul.views.log && viewItem == pijulChange",
    "group": "change"
  • replacement in package.json at line 279
    [2.1942][2.1942:1949]()
    ]
    [2.1942]
    [3.2693]
    ]