瀏覽代碼

Adds reveal commit option to hovers

main
Eric Amodio 2 年之前
父節點
當前提交
175e0cc9ac
共有 1 個檔案被更改,包括 10 行新增0 行删除
  1. +10
    -0
      src/git/formatters/commitFormatter.ts

+ 10
- 0
src/git/formatters/commitFormatter.ts 查看文件

@ -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…
取消
儲存