feat(git): allow url to be given to git.clone

Closes #33857
This commit is contained in:
Markus Wolf
2017-09-08 10:51:48 +02:00
parent ed50fa2105
commit 1730fcf7ac

View File

@@ -257,11 +257,13 @@ export class CommandCenter {
}
@command('git.clone')
async clone(): Promise<void> {
const url = await window.showInputBox({
prompt: localize('repourl', "Repository URL"),
ignoreFocusOut: true
});
async clone(url?: string): Promise<void> {
if (!url) {
url = await window.showInputBox({
prompt: localize('repourl', "Repository URL"),
ignoreFocusOut: true
});
}
if (!url) {
this.telemetryReporter.sendTelemetryEvent('clone', { outcome: 'no_URL' });