Explorar el Código

Adds reveal commit option to hovers

main
Eric Amodio hace 2 años
padre
commit
175e0cc9ac
Se han modificado 1 ficheros con 10 adiciones y 0 borrados
  1. +10
    -0
      src/git/formatters/commitFormatter.ts

+ 10
- 0
src/git/formatters/commitFormatter.ts Ver fichero

@ -6,6 +6,7 @@ import type {
OpenPullRequestActionContext,
} from '../../api/gitlens';
import { getPresenceDataUri } from '../../avatars';
import type { ShowQuickCommitCommandArgs } from '../../commands';
import {
ConnectRemoteProviderCommand,
DiffWithCommand,
@ -430,6 +431,15 @@ export class CommitFormatter extends Formatter {
)} "Open Blame Prior to this Change")`;
}
commands += ` &nbsp;[$(search)](${Command.getMarkdownCommandArgsCore<ShowQuickCommitCommandArgs>(
Commands.RevealCommitInView,
{
repoPath: this._item.repoPath,
sha: this._item.sha,
revealInView: true,
},
)} "Reveal in Side Bar")`;
if (arePlusFeaturesEnabled()) {
commands += ` &nbsp;[$(gitlens-graph)](${Command.getMarkdownCommandArgsCore<ShowInCommitGraphCommandArgs>(
Commands.ShowInCommitGraph,

Cargando…
Cancelar
Guardar