Pārlūkot izejas kodu

Ensures search won't close on focus loss

main
Eric Amodio pirms 1 gada
vecāks
revīzija
ce64a47714
2 mainītis faili ar 4 papildinājumiem un 1 dzēšanām
  1. +2
    -0
      src/commands/git/search.ts
  2. +2
    -1
      src/quickpicks/contributorsPicker.ts

+ 2
- 0
src/commands/git/search.ts Parādīt failu

@ -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 Parādīt failu

@ -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;

Notiek ielāde…
Atcelt
Saglabāt