Closed
Show hint tooltip next to textareas that work with the plugin#93
Conversation
Copilot
AI
changed the title
[WIP] Add hint tooltip for text areas using the plugin
Show hint tooltip next to textareas that work with the plugin
Feb 20, 2026
Show a small tooltip with "Type // for commands" hint when users focus on textareas that work with the plugin. The tooltip: - Appears after a short delay (600ms) on textarea focus - Auto-hides after 8 seconds - Can be permanently dismissed via the × button - Respects dark/light theme - Hides when the picker opens or textarea loses focus Co-authored-by: da-ba <17434220+da-ba@users.noreply.github.com>
- Position tooltip after layout using requestAnimationFrame for accurate offsetHeight measurement - Use template literal for font family concatenation Co-authored-by: da-ba <17434220+da-ba@users.noreply.github.com>
da-ba
force-pushed
the
copilot/add-tooltip-for-text-areas
branch
from
February 22, 2026 10:47
9154ea5 to
eb963fd
Compare
Contributor
🎨 Demo Preview DeployedA live preview of this PR is available at: 🔗 https://da-ba.github.io/gsp/pr-93-eb963fd/ Version: 🤖 This preview is automatically updated on each push. View all deployments at the index page. |
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.
Displays a small independent tooltip near qualifying textareas on focus, hinting users to type
//to open the command list.Changes
src/content/hint-tooltip.ts— Self-contained tooltip module: theme-aware styling, 600ms show delay, 8s auto-hide, permanent dismissal viachrome.storage, positioned at textarea top-right usingrequestAnimationFramefor accurate layout measurementsrc/content/index.ts— Wired into textarea lifecycle: show onfocus(when picker isn't visible), hide onblurand beforeshowPicker, refresh styles on theme change, load dismissed state at bootsrc/content/hint-tooltip.test.ts— 8 unit tests: show/hide timing, dismiss persistence, auto-hide, timer cancellationOriginal prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.