Add command and menu option for adding one or more files to the repository
[?]
Dec 29, 2020, 12:53 AM
VWRDBPJZG6LMTUN2BKCBBPY2LZNJDIJMJ4SFYGXYQFW2XDNXNJPACDependencies
- [2]
YDCLFNEJAdd menu command for recording changes to specific files - [3]
L44OILGKAdd reset command to resource state context menu - [4]
MU6ZNUYZIntegrate recordAll command with input box - [5]
3N3RS66TCreate pijul output channel and configure activation events - [6]
H6KYVQ2QAdd a class to represent resources - [7]
NCBEWRYEInitialize Repository - [8]
ZI7ORD4PAdd iconv dependency - [*]
B4SKYP3YAdd repository model and add steps to initialize it - [*]
ILH3GIVTAdd command centre and refresh/init commands - [*]
JYMSJCPQAdd command to add all untracked files and fix repository refreshing
Change contents
- edit in src/repository.ts at line 166
}}/*** Adds one or more currently untracked files to the Pijul repository* @param resourceStates The files to add to the repository*/async addFiles (...resourceStates: SourceControlResourceState[]): Promise<void> {for await (const untrackedFile of resourceStates) {await this.repository.addFile(untrackedFile.resourceUri); - edit in src/commands.ts at line 147[12.676][12.676]
* Adds one or more currently untracked files to the Pijul repository* @param repository The repository the untracked files will be added to* @param resourceStates The files that will be added*/@command('pijul.add', { repository: true })async add (repository: Repository, ...resourceStates: SourceControlResourceState[]): Promise<void> {await repository.addFiles(...resourceStates);await repository.refreshStatus();}/** - replacement in src/commands.ts at line 173
async stage (repository: Repository, ...resourceStates: SourceControlResourceState[]): Promise<void> {async reset (repository: Repository, ...resourceStates: SourceControlResourceState[]): Promise<void> { - edit in package.json at line 48[12.1025][12.1025]
"command": "pijul.add","title": "Add to Repository","category": "Pijul"},{ - edit in package.json at line 88
"scm/title": [{"command": "pijul.recordAll","when": "scmProvider == pijul"},{"command": "pijul.resetAll","when": "scmProvider == pijul"},{"command": "pijul.addAll","when": "scmProvider == pijul"}],"scm/resourceGroup/context": [{"command": "pijul.recordAll","when": "scmProvider == pijul && scmResourceGroup == changed"},{"command": "pijul.resetAll","when": "scmProvider == pijul && scmResourceGroup == changed"},{"command": "pijul.addAll","when": "scmProvider == pijul && scmResourceGroup == untracked"}], - replacement in package.json at line 119
"when": "scmProvider == pijul && scmResourceGroup == changed","group": "1_modification""when": "scmProvider == pijul && scmResourceGroup == changed" - replacement in package.json at line 123
"when": "scmProvider == pijul && scmResourceGroup == changed","group": "1_modification""when": "scmProvider == pijul && scmResourceGroup == changed"},{"command": "pijul.add","when": "scmProvider == pijul && scmResourceGroup == untracked" - replacement in package.json at line 136
"light": "#587c0c","dark": "#81b88b","highContrast": "#1b5225""light": "#587c0c","dark": "#81b88b","highContrast": "#1b5225" - replacement in package.json at line 140
},{},{ - replacement in package.json at line 145
"light": "#895503","dark": "#E2C08D","highContrast": "#E2C08D""light": "#895503","dark": "#E2C08D","highContrast": "#E2C08D" - replacement in package.json at line 149
},{},{ - replacement in package.json at line 154
"light": "#ad0707","dark": "#c74e39","highContrast": "#c74e39""light": "#ad0707","dark": "#c74e39","highContrast": "#c74e39" - replacement in package.json at line 158
},{},{ - replacement in package.json at line 163
"light": "#007100","dark": "#73C991","highContrast": "#73C991""light": "#007100","dark": "#73C991","highContrast": "#73C991" - replacement in package.json at line 167
},{},{ - replacement in package.json at line 172
"light": "#895503","dark": "#E2C08D","highContrast": "#E2C08D""light": "#895503","dark": "#E2C08D","highContrast": "#E2C08D" - replacement in package.json at line 176
},{},{ - replacement in package.json at line 181
"light": "#6c6cc4","dark": "#6c6cc4","highContrast": "#6c6cc4""light": "#6c6cc4","dark": "#6c6cc4","highContrast": "#6c6cc4" - replacement in package.json at line 185
}} - replacement in package.json at line 224
}[3.109591]}