Add commands to open repo and global pijul configuration files
[?]
Dec 29, 2020, 7:32 PM
6H4B4UJQ4PQULICKBZ5U55QU2BWIH2VNGRCUVYR7KDYOGC7MQU7QCDependencies
- [2]
VWRDBPJZAdd command and menu option for adding one or more files to the repository - [3]
FAMBRMO7Add command to open file to source control resources - [4]
L44OILGKAdd reset command to resource state context menu - [5]
ILH3GIVTAdd command centre and refresh/init commands - [*]
B4SKYP3YAdd repository model and add steps to initialize it - [*]
YUVLBWV3Populate resource groups for unrecorded and untracked changes - [*]
NCBEWRYEInitialize Repository - [*]
MU6ZNUYZIntegrate recordAll command with input box
Change contents
- edit in src/repository.ts at line 94
}get root (): Uri {return Uri.file(this.repository.root); - replacement in src/commands.ts at line 1
import { commands, Disposable, OutputChannel, SourceControlResourceState, window, workspace } from 'vscode';import * as os from 'os';import * as path from 'path';import { commands, Disposable, OutputChannel, SourceControlResourceState, Uri, window, workspace } from 'vscode'; - edit in src/commands.ts at line 197
}}/*** Opens the repository's configuration file for editing* @param repository The repository which will have its config open.*/@command('pijul.editRepoConfiguration', { repository: true })async editRepoConfiguration (repository: Repository): Promise<void> {await commands.executeCommand('vscode.open', Uri.file(path.join(repository.root.path, '.pijul', 'config')));}/*** Opens the global Pijul configuration file for editing*/@command('pijul.editGlobalConfiguration')async editGlobalConfiguration (): Promise<void> {switch (os.platform()) {case 'darwin':await commands.executeCommand('vscode.open', Uri.file(path.join(os.homedir(), '.pijulconfig')));break;default:await commands.executeCommand('vscode.open', Uri.file(path.join(os.homedir(), '.config', 'pijul', 'config.toml')));break; - edit in package.json at line 70[3.454][10.1961]
"category": "Pijul"},{"command": "pijul.editRepoConfiguration","title": "Edit Repository Configuration","category": "Pijul"},{"command": "pijul.editGlobalConfiguration","title": "Edit Global Configuration", - edit in package.json at line 104
{"command": "pijul.editGlobalConfiguration","when": "scmProvider == pijul","group": "first"}, - edit in package.json at line 110
"command": "pijul.editRepoConfiguration","when": "scmProvider == pijul","group": "first"},{