Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Git: Make repository picker available to other extensions #102394

Closed
joaomoreno opened this issue Jul 13, 2020 · 1 comment
Closed

Git: Make repository picker available to other extensions #102394

joaomoreno opened this issue Jul 13, 2020 · 1 comment
Assignees
Labels
feature-request Request for new features or functionality git GIT issues insiders-released Patch has been released in VS Code Insiders on-release-notes Issue/pull request mentioned in release notes verification-needed Verification of issue is requested verified Verification succeeded
Milestone

Comments

@joaomoreno
Copy link
Member

No description provided.

@joaomoreno joaomoreno added feature-request Request for new features or functionality git GIT issues labels Jul 13, 2020
@joaomoreno joaomoreno added this to the July 2020 milestone Jul 13, 2020
@joaomoreno joaomoreno self-assigned this Jul 13, 2020
@joaomoreno
Copy link
Member Author

The command is git.api.getRemoteSources and it has a bag of options:

export interface PickRemoteSourceOptions {
	readonly providerLabel?: (provider: RemoteSourceProvider) => string;
	readonly urlLabel?: string;
}

Usage:

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

recording (1)

cc @egamma

@joaomoreno joaomoreno added the verification-needed Verification of issue is requested label Jul 14, 2020
Charles-Gagnon pushed a commit to Charles-Gagnon/vscode that referenced this issue Jul 14, 2020
@alexr00 alexr00 added the verified Verification succeeded label Aug 5, 2020
@joaomoreno joaomoreno added the on-release-notes Issue/pull request mentioned in release notes label Aug 7, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Aug 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality git GIT issues insiders-released Patch has been released in VS Code Insiders on-release-notes Issue/pull request mentioned in release notes verification-needed Verification of issue is requested verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

3 participants
@joaomoreno @alexr00 and others