Skip to content

fix(vitepress-twoslash): delay twoslash tooltip show by 200ms - #1306

Merged
antfu merged 1 commit into
mainfrom
fix/twoslash-tooltip-show-delay
Aug 10, 2026
Merged

antfu merged 1 commit into
mainfrom
fix/twoslash-tooltip-show-delay

Conversation

@antfubot

Copy link
Copy Markdown
Collaborator
  • <- Keep this line and put an x between the brackts.

Description

Delays the Twoslash hover tooltip's show by 200ms while keeping the hide delay at 0. This gives text-selection drags time to begin before a tooltip appears and intercepts the drag path, without affecting how quickly tooltips disappear.

Applied at the source (@shikijs/vitepress-twoslash's client.ts default), rather than at a single consumer's call site, so every site using this package benefits.

Linked Issues

Related: vueuse/vueuse#5565 (same fix applied there at their call site instead of the shared default)

Additional context

Single-line default change in the floating-vue twoslash theme options: delay: 0 → delay: { show: 200, hide: 0 }.


This PR was created with the help of an AI agent.

@netlify

netlify Bot commented Aug 10, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for shiki-next ready!

Name Link
🔨 Latest commit d7868c7
🔍 Latest deploy log https://app.netlify.com/projects/shiki-next/deploys/6a7957d41fa6e60008a00da2
😎 Deploy Preview https://deploy-preview-1306--shiki-next.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Aug 10, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for shiki-matsu ready!

Name Link
🔨 Latest commit d7868c7
🔍 Latest deploy log https://app.netlify.com/projects/shiki-matsu/deploys/6a7957d4f3ed42000825e1b3
😎 Deploy Preview https://deploy-preview-1306--shiki-matsu.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@antfu
antfu merged commit 9f2aab6 into main Aug 10, 2026
11 of 13 checks passed
@antfu
antfu deleted the fix/twoslash-tooltip-show-delay branch August 10, 2026 04:48
@codecov

codecov Bot commented Aug 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.75%. Comparing base (8745add) to head (d7868c7).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1306   +/-   ##
=======================================
  Coverage   89.75%   89.75%           
=======================================
  Files          79       79           
  Lines        3552     3552           
  Branches     1006     1008    +2     
=======================================
  Hits         3188     3188           
  Misses        327      327           
  Partials       37       37           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

antfu pushed a commit to SHUBHI-KUMARI/shiki that referenced this pull request Oct 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants