Skip to content

Provide option to default to github provider git.api.getRemoteSources and potentially list org repos. #106316

@wangjaso

Description

@wangjaso

The repository picker feature #102394 allows to pick github repos after selecting the GitHub provider.
Asking for

  1. An option to default the provider to GitHub so that user can have one less click when creating a codespace.
  2. Currently it lists all repos where you are owner, is it possible to list repos of organizations you are in as well?

A side question is how does the api authenticate, is it with the stored git credentials in git extension?

await commands.executeCommand('git.api.getRemoteSources', {
	providerLabel: (provider: RemoteSourceProvider) => `Test this for ${provider.name}`,
	urlLabel: `Test this for URL`,
        defaultProvider: 'Github'
});

@joaomoreno

Thanks,
Jason

Metadata

Metadata

Assignees

Labels

feature-requestRequest for new features or functionalitygitGIT issueshelp wantedIssues identified as good community contribution opportunitiesinsiders-releasedPatch has been released in VS Code Insiderson-release-notesIssue/pull request mentioned in release notesverification-neededVerification of issue is requestedverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions