Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 21dce69

Browse files
committed
Report all steps complete before returning
When a repository is opened rather than cloned, the operation won't have reported any progress. As a workaround, report 1/1 steps complete before returning a CodeContainer.
1 parent 474c3f0 commit 21dce69

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/GitHub.StartPage/StartPagePackage.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ async Task<CodeContainer> RunAcquisition(IProgress<ServiceProgressData> download
7979

8080
var uri = request.Url.ToRepositoryUrl();
8181
var repositoryName = request.Url.RepositoryName;
82+
83+
// Report all steps complete before returning a CodeContainer
84+
downloadProgress.Report(new ServiceProgressData(string.Empty, string.Empty, 1, 1));
85+
8286
return new CodeContainer(
8387
localProperties: new CodeContainerLocalProperties(request.Path, CodeContainerType.Folder,
8488
new CodeContainerSourceControlProperties(repositoryName, request.Path, new Guid(Guids.GitSccProviderId))),

0 commit comments

Comments
 (0)