Skip to content

When on VSCode web, add handling for failing repo discovery #2629

@eamodio

Description

@eamodio

There has been an issue sometimes if there are no files open or anything in vscode.dev/github.dev

Image

It used to be infrequent, but now it seems to always happen -- and it seems to correct itself after a while (the branch will show up in the statusbar and the top area will refresh), but we don't detect a change.

We have opened an issue for this: microsoft/vscode-remote-repositories-github#308

In the meantime, we might want to look into adding some extra round of detection if we are on the web and there is a workspace folder -- like after a short delay or something if no repos were detected.

Maybe if we are on the web, add a .then onto

void this.discoverRepositories(workspaceFolders);

And if no repositories were discovered, do a settimeout for like 500ms or 1s and run the discovery once more.

Metadata

Metadata

Assignees

Labels

needs-explorationIssue that needs design, research, POC, etc.

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions