Quellcode durchsuchen

Adds reveal commit option to hovers

main
Eric Amodio vor 2 Jahren
Ursprung
Commit
175e0cc9ac
1 geänderte Dateien mit 10 neuen und 0 gelöschten Zeilen
  1. +10
    -0
      src/git/formatters/commitFormatter.ts

+ 10
- 0
src/git/formatters/commitFormatter.ts Datei anzeigen

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

Laden…
Abbrechen
Speichern