mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 03:29:00 +01:00
Merge commit 'refs/pull/45341/head' of github.com:Microsoft/vscode into pr/45341
This commit is contained in:
@@ -1331,7 +1331,7 @@ export class CommandCenter {
|
||||
return;
|
||||
}
|
||||
|
||||
const remotePicks = remotes.map(r => ({ label: r.name, description: r.url }));
|
||||
const remotePicks = remotes.filter(r => r.fetchUrl !== undefined).map(r => ({ label: r.name, description: r.fetchUrl! }));
|
||||
const placeHolder = localize('pick remote pull repo', "Pick a remote to pull the branch from");
|
||||
const remotePick = await window.showQuickPick(remotePicks, { placeHolder });
|
||||
|
||||
@@ -1438,7 +1438,7 @@ export class CommandCenter {
|
||||
}
|
||||
|
||||
const branchName = repository.HEAD.name;
|
||||
const picks = remotes.map(r => ({ label: r.name, description: r.url }));
|
||||
const picks = remotes.filter(r => r.pushUrl !== undefined).map(r => ({ label: r.name, description: r.pushUrl! }));
|
||||
const placeHolder = localize('pick remote', "Pick a remote to publish the branch '{0}' to:", branchName);
|
||||
const pick = await window.showQuickPick(picks, { placeHolder });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user