docs(editor): document vocab argument shape on rankVocab
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
2060af44f2
commit
19357124f4
1 changed files with 1 additions and 0 deletions
|
|
@ -16,6 +16,7 @@ function score(query, label) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// vocab shape: { cvars: [{name, desc?}, …], commands: [{name, desc?}, …] }
|
||||||
export function rankVocab(query, vocab, { limit = 50 } = {}) {
|
export function rankVocab(query, vocab, { limit = 50 } = {}) {
|
||||||
if (!query) return [];
|
if (!query) return [];
|
||||||
const q = query.toLowerCase();
|
const q = query.toLowerCase();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue