Quellcode durchsuchen

Ensures search won't close on focus loss

main
Eric Amodio vor 1 Jahr
Ursprung
Commit
ce64a47714
2 geänderte Dateien mit 4 neuen und 1 gelöschten Zeilen
  1. +2
    -0
      src/commands/git/search.ts
  2. +2
    -1
      src/quickpicks/contributorsPicker.ts

+ 2
- 0
src/commands/git/search.ts Datei anzeigen

@ -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 Datei anzeigen

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

Laden…
Abbrechen
Speichern