You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The git.api.getRemoteSources command now accepts a branch: boolean field which, when true, prompts the user to pick a branch. Please follow the spec and example below, in order to create a sample extension which uses this Git/GitHub API:
You basically only need to write the following code:
awaitcommands.executeCommand('git.api.getRemoteSources',{providerLabel: (provider: RemoteSourceProvider)=>`Testing the branch picker of ${provider.name}`,urlLabel: `URL`,branch: true});
Once that code executes, a repo picker should appear. Pick GitHub. Then a branch picker should appear. The first option should be the repo's default branch (often master).
The text was updated successfully, but these errors were encountered:
Refs: #106664
Complexity: 3
Create Issue
The
git.api.getRemoteSources
command now accepts abranch: boolean
field which, whentrue
, prompts the user to pick a branch. Please follow the spec and example below, in order to create a sample extension which uses this Git/GitHub API:#106664 (comment)
You basically only need to write the following code:
Once that code executes, a repo picker should appear. Pick GitHub. Then a branch picker should appear. The first option should be the repo's default branch (often
master
).The text was updated successfully, but these errors were encountered: