Explorar el Código

Updates search results messages

main
Eric Amodio hace 5 años
padre
commit
5d56039266
Se han modificado 4 ficheros con 10 adiciones y 10 borrados
  1. +6
    -6
      src/commands/git/search.ts
  2. +2
    -2
      src/commands/showQuickCommitDetails.ts
  3. +1
    -1
      src/quickpicks/commonQuickPicks.ts
  4. +1
    -1
      src/views/searchView.ts

+ 6
- 6
src/commands/git/search.ts Ver fichero

@ -348,7 +348,7 @@ export class SearchGitCommand extends QuickCommandBase {
} else {
quickpick.items = [
{
label: 'Search for commits matching',
label: 'Search for',
description: quickpick.value,
item: quickpick.value
}
@ -389,7 +389,7 @@ export class SearchGitCommand extends QuickCommandBase {
state.repo.path,
search,
{
label: { label: `commits matching: ${state.search}` }
label: { label: `for ${state.search}` }
},
resultsPromise
);
@ -411,10 +411,10 @@ export class SearchGitCommand extends QuickCommandBase {
title: `${this.title}${Strings.pad(GlyphChars.Dot, 2, 2)}${state.repo.formattedName}`,
placeholder:
results === undefined
? `No results for commits matching: ${state.search}`
? `No results for ${state.search}`
: `${Strings.pluralize('result', results.count, {
number: results.truncated ? `${results.count}+` : undefined
})} for commits matching: ${state.search}`,
})} for ${state.search}`,
matchOnDescription: true,
matchOnDetail: true,
items:
@ -440,7 +440,7 @@ export class SearchGitCommand extends QuickCommandBase {
state.repo!.path,
search,
{
label: { label: `commits matching: ${state.search}` }
label: { label: `for ${state.search}` }
},
results
);
@ -459,7 +459,7 @@ export class SearchGitCommand extends QuickCommandBase {
pickedCommit.repoPath,
{ pattern: `commit:${pickedCommit.sha}` },
{
label: { label: `commits matching: commit:${pickedCommit.shortSha}` }
label: { label: `for commit id ${pickedCommit.shortSha}` }
}
);

+ 2
- 2
src/commands/showQuickCommitDetails.ts Ver fichero

@ -122,9 +122,9 @@ export class ShowQuickCommitDetailsCommand extends ActiveEditorCachedCommand {
if (args.showInView) {
void (await Container.searchView.search(
repoPath!,
{ pattern: `commit: ${args.commit.sha}` },
{ pattern: `commit:${args.commit.sha}` },
{
label: { label: `commits matching: commit:${args.commit.shortSha}` }
label: { label: `for commit id ${args.commit.shortSha}` }
}
));

+ 1
- 1
src/quickpicks/commonQuickPicks.ts Ver fichero

@ -113,7 +113,7 @@ export class ShowCommitInViewQuickPickItem extends CommandQuickPickItem {
this.commit.repoPath,
{ pattern: `commit:${this.commit.sha}` },
{
label: { label: `commits matching: commit:${this.commit.shortSha}` }
label: { label: `for commit id ${this.commit.shortSha}` }
}
));
}

+ 1
- 1
src/views/searchView.ts Ver fichero

@ -203,7 +203,7 @@ export class SearchView extends ViewBase {
number: truncated ? `${count}+` : undefined,
plural: resultsType.plural,
zero: 'No'
})} for ${label.label}`;
})} ${label.label}`;
}
private getSearchQueryFn(

Cargando…
Cancelar
Guardar