Преглед изворни кода

Defaults compact to false in getFormattedDiffStatus

main
Eric Amodio пре 6 година
родитељ
комит
54ecf456d8
3 измењених фајлова са 8 додато и 4 уклоњено
  1. +1
    -1
      src/git/models/logCommit.ts
  2. +1
    -1
      src/git/models/status.ts
  3. +6
    -2
      src/quickpicks/commonQuickPicks.ts

+ 1
- 1
src/git/models/logCommit.ts Прегледај датотеку

@ -107,7 +107,7 @@ export class GitLogCommit extends GitCommit {
const { added, changed, deleted } = this.getDiffStatus();
if (added === 0 && changed === 0 && deleted === 0) return options.empty || '';
options = { compact: true, empty: '', prefix: '', separator: ' ', suffix: '', ...options };
options = { empty: '', prefix: '', separator: ' ', suffix: '', ...options };
if (options.expand) {
let status = '';
if (added) {

+ 1
- 1
src/git/models/status.ts Прегледај датотеку

@ -81,7 +81,7 @@ export class GitStatus {
const { added, changed, deleted } = this.getDiffStatus();
if (added === 0 && changed === 0 && deleted === 0) return options.empty || '';
options = { compact: true, empty: '', prefix: '', separator: ' ', suffix: '', ...options };
options = { empty: '', prefix: '', separator: ' ', suffix: '', ...options };
if (options.expand) {
let status = '';
if (added) {

+ 6
- 2
src/quickpicks/commonQuickPicks.ts Прегледај датотеку

@ -116,13 +116,17 @@ export class CommitQuickPickItem implements QuickPickItem {
GlyphChars.Dot,
1,
1
)} ${commit.formattedDate} ${Strings.pad(GlyphChars.Dot, 1, 1)} ${commit.getFormattedDiffStatus()}`;
)} ${commit.formattedDate} ${Strings.pad(GlyphChars.Dot, 1, 1)} ${commit.getFormattedDiffStatus({
compact: true
})}`;
}
else {
this.label = message;
this.description = `${Strings.pad('$(git-commit)', 1, 1)} ${commit.shortSha}`;
this.detail = `${GlyphChars.Space} ${commit.author}, ${commit.formattedDate}${
commit.isFile ? '' : ` ${Strings.pad(GlyphChars.Dot, 1, 1)} ${commit.getFormattedDiffStatus()}`
commit.isFile
? ''
: ` ${Strings.pad(GlyphChars.Dot, 1, 1)} ${commit.getFormattedDiffStatus({ compact: true })}`
}`;
}
}

Loading…
Откажи
Сачувај