Skip to main content

describe_code_search

Function describe_code_search 

Source
pub fn describe_code_search(
    args: &Value,
) -> Option<(String, &'static [&'static str])>
Expand description

Headline for code_search over the query and its alias keys.

The schema requires query, but common aliases are accepted defensively so a valid search never degrades to a generic header. Records the actual matched key so detail collection and headline highlights stay in sync (a hardcoded “query” would leak e.g. Pattern: … as a duplicate line).