268
const [owner, repo] = githubRepo.split('/');
269
canonicalId = getGitHubCanonicalId(owner, repo, ref);
271
canonicalId = appendRefSuffix(`git:${uri.authority.toLowerCase()}/${canonicalPath}`, ref);
272
}
274
>
return {
275
>
rawValue,
276
>
displayLabel: rawValue,
277
>
cloneUrl: cloneUri.toString(),
278
>
canonicalId,
279
>
cacheSegments: [sanitizedAuthority, ...pathSegments, ...getRefCacheSegments(ref)],
280
>
kind: MarketplaceReferenceKind.GitUri,
281
>
ref,
282
>
githubRepo,
283
>
};
284
>
}
285
286
function parseScpMarketplaceReference(rawValue: string): IMarketplaceReference | undefined {