Parcourir la source

Ensures search won't close on focus loss

main
Eric Amodio il y a 1 an
Parent
révision
ce64a47714
2 fichiers modifiés avec 4 ajouts et 1 suppressions
  1. +2
    -0
      src/commands/git/search.ts
  2. +2
    -1
      src/quickpicks/contributorsPicker.ts

+ 2
- 0
src/commands/git/search.ts Voir le fichier

@ -356,6 +356,7 @@ export class SearchGitCommand extends QuickCommand {
const step = createPickStep<QuickPickItemOfT<NormalizedSearchOperators>>({
title: appendReposToTitle(context.title, state, context),
placeholder: 'e.g. "Updates dependencies" author:eamodio',
ignoreFocusOut: true,
matchOnDescription: true,
matchOnDetail: true,
additionalButtons: [matchCaseButton, matchAllButton, matchRegexButton],
@ -477,6 +478,7 @@ async function updateSearchQuery(
{
appendReposToTitle: true,
clearButton: true,
ignoreFocusOut: true,
multiselect: true,
picked: c =>
authors != null &&

+ 2
- 1
src/quickpicks/contributorsPicker.ts Voir le fichier

@ -19,6 +19,7 @@ export async function showContributorsPicker(
options?: {
appendReposToTitle?: boolean;
clearButton?: boolean;
ignoreFocusOut?: boolean;
multiselect?: boolean;
picked?: (contributor: GitContributor) => boolean;
},
@ -45,7 +46,7 @@ export async function showContributorsPicker(
}),
);
quickpick.ignoreFocusOut = getQuickPickIgnoreFocusOut();
quickpick.ignoreFocusOut = options?.ignoreFocusOut ?? getQuickPickIgnoreFocusOut();
quickpick.title = options?.appendReposToTitle ? appendRepoToTitle(container, title, repository) : title;
quickpick.placeholder = placeholder;

Chargement…
Annuler
Enregistrer