Ver a proveniência

Closes #1789 adds emojis to rebase editor

main
Eric Amodio há 2 anos
ascendente
cometimento
b2dc120daf
2 ficheiros alterados com 4 adições e 2 eliminações
  1. +1
    -0
      CHANGELOG.md
  2. +3
    -2
      src/webviews/rebase/rebaseEditor.ts

+ 1
- 0
CHANGELOG.md Ver ficheiro

@ -13,6 +13,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
- Shows the _Commit Details_ view on commit selection
- Adds full (multiline) commit message
- Adds the `f` fixup shortcut key to UI
- Adds emoji support for commit messages — closes [#1789](https://github.com/gitkraken/vscode-gitlens/issues/1789)
- Ensures that large rebases show rich commit details
- Changes the _Home_ view to always be available

+ 3
- 2
src/webviews/rebase/rebaseEditor.ts Ver ficheiro

@ -6,6 +6,7 @@ import { GitActions } from '../../commands/gitCommands.actions';
import { configuration } from '../../configuration';
import { CoreCommands } from '../../constants';
import type { Container } from '../../container';
import { emojify } from '../../emojis';
import type { GitCommit } from '../../git/models/commit';
import { RepositoryChange, RepositoryChangeComparisonMode } from '../../git/models/repository';
import { Logger } from '../../logger';
@ -597,7 +598,7 @@ export class RebaseEditorProvider implements CustomTextEditorProvider, Disposabl
author: commit.author.name,
date: commit.formatDate(defaultDateFormat),
dateFromNow: commit.formatDateFromNow(),
message: commit.message ?? commit.summary,
message: emojify(commit.message ?? commit.summary),
};
}
@ -613,7 +614,7 @@ export class RebaseEditorProvider implements CustomTextEditorProvider, Disposabl
author: ontoCommit.author.name,
date: ontoCommit.formatDate(defaultDateFormat),
dateFromNow: ontoCommit.formatDateFromNow(),
message: ontoCommit.message || 'root',
message: emojify(ontoCommit.message || 'root'),
}
: undefined,
}

Carregando…
Cancelar
Guardar