Skip to content

Commit 35a0145

Browse files
mrleemurrayCopilot
andauthored
Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 852feac commit 35a0145

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

webviews/components/stickyHeader.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,14 @@ export function StickyHeader({ pr, visible }: { pr: PullRequest; visible: boolea
4242
<span>{text}</span>
4343
</div>
4444
<span className="sticky-header-title" dangerouslySetInnerHTML={{ __html: pr.titleHTML }} />
45-
<a className="sticky-header-number" href={pr.url}>#{pr.number}</a>
45+
<a
46+
className="sticky-header-number"
47+
href={pr.url}
48+
title={pr.url}
49+
data-vscode-context={JSON.stringify({ url: pr.url })}
50+
>
51+
#{pr.number}
52+
</a>
4653
<button title="Copy Link" onClick={copyPrLink} className="icon-button sticky-header-copy" aria-label="Copy Pull Request Link">
4754
{copyIcon}
4855
</button>

0 commit comments

Comments
 (0)