Skip to content

Commit 961046f

Browse files
feat(Wind): Add Git and SCM IPC channel definitions
Extend the `Source/IPC/Channel.ts` registry with new command constants to support Git operations and Source Control Management workflows. Add a new "Git (subprocess)" section defining channels for `GitExec`, `GitClone`, `GitPull`, `GitCheckout`, `GitFetch`, `GitRevParse`, `GitRevListCount`, `GitCancel`, and `GitIsAvailable`. Additionally, introduce `ScmSetActiveProvider` under the SCM section and `TasksGetTaskExecution` under Tasks to align the IPC layer with upcoming workbench service implementations. These definitions establish the contract for Wind to request native Git actions from Mountain or the Cocoon host, enabling integrated version control features within the editor.
1 parent d6c85ed commit 961046f

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

Source/IPC/Channel.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,11 +405,32 @@ export default {
405405

406406
LanguagesGetEncodedLanguageId: "languages:getEncodedLanguageId",
407407

408+
// --- Git (subprocess) ---
409+
GitExec: "git:exec",
410+
411+
GitClone: "git:clone",
412+
413+
GitPull: "git:pull",
414+
415+
GitCheckout: "git:checkout",
416+
417+
GitRevParse: "git:revParse",
418+
419+
GitFetch: "git:fetch",
420+
421+
GitRevListCount: "git:revListCount",
422+
423+
GitCancel: "git:cancel",
424+
425+
GitIsAvailable: "git:isAvailable",
426+
408427
// --- SCM ---
409428
ScmCreateSourceControl: "scm:createSourceControl",
410429

411430
ScmGetSourceControls: "scm:getSourceControls",
412431

432+
ScmSetActiveProvider: "scm:setActiveProvider",
433+
413434
// --- Debug ---
414435
DebugStartDebugging: "debug:startDebugging",
415436

@@ -428,6 +449,8 @@ export default {
428449

429450
TasksGetTasks: "tasks:getTasks",
430451

452+
TasksGetTaskExecution: "tasks:getTaskExecution",
453+
431454
// --- Authentication ---
432455
AuthGetSessions: "auth:getSessions",
433456

0 commit comments

Comments
 (0)