Skip to main content

suggest_workloads

Function suggest_workloads 

Source
pub fn suggest_workloads(partial: &str) -> Vec<String>
Expand description

Every workload reference matching partial by leaf segment (or by full-reference prefix), drawn from the local file hierarchy below the current directory (down to MAX_DEPTH levels) and the bundled catalog. Sorted and deduped.

The completion provider drops to this when no prefix candidate is obvious near the cursor; the run/check resolvers feed it to did_you_mean. Empty partial yields nothing — there is no leaf to match on, and offering the whole tree as a suggestion helps no one.