Commit e1d80e4
committed
feat(Common/SCM): Add DTO for SCM provider creation
Added the `SourceControlCreateDTO` struct in the Common crate to define the data transfer contract for creating new Source Control providers. This DTO:
1. Implements serialization/deserialization using Serde with PascalCase naming
2. Contains fields for provider ID, label, and repository root URI
3. Uses a custom `URLSerializationHelper` for proper URI handling
This DTO enables communication between the Cocoon extension host and Mountain backend when extensions call `vscode.scm.createSourceControl`, directly supporting the SCM workflow implementation. The RootUri field alignment with VS Code's API ensures compatibility with existing extensions while maintaining type safety through the Vine gRPC layer.
Refs #347db1e1 parent 347db1e commit e1d80e4
1 file changed
Lines changed: 22 additions & 0 deletions
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
0 commit comments