Explorar el Código

Handles empty commits better

main
Eric Amodio hace 4 años
padre
commit
d67f3d72b1
Se han modificado 1 ficheros con 5 adiciones y 3 borrados
  1. +5
    -3
      src/quickpicks/commitQuickPickItems.ts

+ 5
- 3
src/quickpicks/commitQuickPickItems.ts Ver fichero

@ -16,9 +16,11 @@ export class CommitFilesQuickPickItem extends CommandQuickPickItem {
label: commit.getShortMessage(),
// eslint-disable-next-line no-template-curly-in-string
description: CommitFormatter.fromTemplate('${author}, ${ago} $(git-commit) ${id}', commit),
detail: `$(files) ${commit.getFormattedDiffStatus({ expand: true, separator: ', ' })}${
fileName ? `${Strings.pad(GlyphChars.Dot, 2, 2)}${fileName}` : ''
}`,
detail: `$(files) ${commit.getFormattedDiffStatus({
expand: true,
separator: ', ',
empty: 'No files changed',
})}${fileName ? `${Strings.pad(GlyphChars.Dot, 2, 2)}${fileName}` : ''}`,
picked: picked,
},
undefined,

Cargando…
Cancelar
Guardar