Skip to main content

doc_link_context

Function doc_link_context 

pub fn doc_link_context(
    source: &str,
    offset: usize,
) -> Option<DocLinkCompletionContext>
Expand description

#2458: the doc-link completion context at offset, or None when the cursor is not inside a --- / --| doc comment (or is in a fenced code block, or after a [ already closed or broken by a non-identifier character). This is the strict gate for the server-wide [ trigger: code outside doc ranges never yields a context. Tokenizes only; None if the source does not tokenize.