MCPcopy Create free account
hub / github.com/Botloader/botloader / pushScmGroup

Method pushScmGroup

botloader-vscode/src/guildspace.ts:268–279  ·  view source on GitHub ↗
(group: vscode.SourceControlResourceGroup)

Source from the content-addressed store, hash-verified

266 }
267
268 async pushScmGroup(group: vscode.SourceControlResourceGroup) {
269 await vscode.window.withProgress({ location: vscode.ProgressLocation.SourceControl }, async progress => {
270 let index = await this.readIndexFile();
271
272 for (let state of this.changedFilesGroup.resourceStates) {
273 await this.pushSingleChange(state.resourceUri, index);
274 }
275
276 await this.syncWorkspace();
277 await this.apiClient.reloadGuildVm(index.guild.id);
278 });
279 }
280
281 async pushSingleChange(uri: vscode.Uri, index: IndexFile) {
282 const relativePath = relative(this.folder.path, uri.path);

Callers

nothing calls this directly

Calls 4

readIndexFileMethod · 0.95
pushSingleChangeMethod · 0.95
syncWorkspaceMethod · 0.95
reloadGuildVmMethod · 0.80

Tested by

no test coverage detected