Skip to main content

Module hover

Module hover 

Source
Expand description

Hover — the Hover trait the app satisfies plus the plain data it returns. Like the other language services it is synchronous by contract: a hover query is an in-memory lookup keyed by the word under the pointer, so the widget calls it on the mouse-idle tick and renders the reply the same frame. Because the answer is produced synchronously there is no reply envelope and nothing in flight, so a reply can never arrive stale.

Structs§

HoverCx
A revision-stamped hover request — everything the provider may read.
HoverInfo
A resolved hover: the markdown to render and the word it describes.

Constants§

HOVER_IDLE_DELAY_MS
Mouse-idle delay before a hover query fires, in milliseconds. Tuned to the ~300 ms mainstream editors use, so the popup feels neither jumpy nor sluggish. The widget arms one query when the pointer rests over a word this long without moving.

Traits§

Hover
The provider seam the integrating app implements to answer hover queries.