feat(plugins): add source-control extension contracts (#2117)

This commit is contained in:
José Almeida
2026-08-13 08:29:29 +01:00
committed by GitHub
parent 064b852884
commit f218880ecb
530 changed files with 39054 additions and 7518 deletions
@@ -52,6 +52,21 @@ describe("getWorkspaceSourceCapabilities", () => {
{ provider: "github", provider_owner: "acme", provider_name: "api" },
true,
],
[
"a future provider with an explicit host, owner, and name",
{
provider: "example-vcs",
provider_host: "code.example.test",
provider_owner: "acme",
provider_name: "api",
},
true,
],
[
"an unknown provider without an explicit host",
{ provider: "example-vcs", provider_owner: "acme", provider_name: "api" },
false,
],
["a provider ID without owner and name", { provider: "github", provider_repo_id: "42" }, false],
["no remote locator", {}, false],
])("recognizes %s as cloneable: %s", (_, repository, expected) => {