mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 04:09:28 +00:00
Git - adopt new QuickInputButton location (#275071)
This commit is contained in:
@@ -2973,13 +2973,11 @@ export class CommandCenter {
|
|||||||
inputBox.placeholder = l10n.t('Branch name');
|
inputBox.placeholder = l10n.t('Branch name');
|
||||||
inputBox.prompt = l10n.t('Please provide a new branch name');
|
inputBox.prompt = l10n.t('Please provide a new branch name');
|
||||||
|
|
||||||
inputBox.buttons = branchRandomNameEnabled ? [
|
inputBox.buttons = branchRandomNameEnabled ? [{
|
||||||
{
|
iconPath: new ThemeIcon('refresh'),
|
||||||
iconPath: new ThemeIcon('refresh'),
|
tooltip: l10n.t('Regenerate Branch Name'),
|
||||||
tooltip: l10n.t('Regenerate Branch Name'),
|
location: QuickInputButtonLocation.Input
|
||||||
location: QuickInputButtonLocation.Inline
|
}] : [];
|
||||||
}
|
|
||||||
] : [];
|
|
||||||
|
|
||||||
inputBox.value = initialValue ?? await getBranchName();
|
inputBox.value = initialValue ?? await getBranchName();
|
||||||
inputBox.valueSelection = getValueSelection(inputBox.value);
|
inputBox.valueSelection = getValueSelection(inputBox.value);
|
||||||
|
|||||||
Reference in New Issue
Block a user