Browse Source

Adds reveal commit option to hovers

main
Eric Amodio 2 years ago
parent
commit
175e0cc9ac
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      src/git/formatters/commitFormatter.ts

+ 10
- 0
src/git/formatters/commitFormatter.ts View File

@ -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,

Loading…
Cancel
Save