docs(editor): document vocab argument shape on rankVocab

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
mwiegand 2026-05-17 18:38:01 +02:00
parent 2060af44f2
commit 19357124f4
No known key found for this signature in database

View file

@ -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();