Repository navigation
fix(vitepress-twoslash): delay twoslash tooltip show by 200ms - #1306
Merged
Merged
Conversation
✅ Deploy Preview for shiki-next ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for shiki-matsu ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|
antfu
pushed a commit
to SHUBHI-KUMARI/shiki
that referenced
this pull request
Oct 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
xbetween 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'sclient.tsdefault), 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-vuetwoslashtheme options:delay: 0→delay: { show: 200, hide: 0 }.This PR was created with the help of an AI agent.