tinymist_analysis::upstream

Function tooltip_

Source
pub fn tooltip_(
    world: &dyn World,
    source: &Source,
    cursor: usize,
) -> Option<Tooltip>
Expand description

Describe the item under the cursor.

Passing a document (from a previous compilation) is optional, but enhances the autocompletions. Label completions, for instance, are only generated when the document is available.