Skip to content

Commit a3f7f46

Browse files
authored
Merge pull request #25427 from github/repo-sync
repo sync
2 parents 0bb8ead + 0d3f3fd commit a3f7f46

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

components/LinkPreviewPopover.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,11 @@ export function LinkPreviewPopover() {
356356
link.href.startsWith(window.location.origin) &&
357357
!link.classList.contains('heading-link') &&
358358
!pathname.startsWith('/public/') &&
359-
!pathname.startsWith('/assets/')
359+
!pathname.startsWith('/assets/') &&
360+
// This skips those ToolPicker links with `data-tool="vscode"`
361+
// attribute, for example.
362+
!link.dataset.tool &&
363+
!link.dataset.platform
360364
)
361365
})
362366

0 commit comments

Comments
 (0)