Skip to main content

Module resolver

Module resolver 

Source
Expand description

Pick the right hover renderer for the token / word run under the cursor.

Functionsยง

from_token
Resolve a single (possibly dotted) token against catalog + knowledge.
from_window
Try every contiguous 2- or 3-word window inside window.words that includes the cursor word. Longest wins (IS NOT NULL beats IS NULL beats IS). Returns the rendered markdown when a multi-word keyword matches.
from_words
Older single-direction helper kept for tests.
resolve