Debounce autocomplete

This commit is contained in:
Gregory Schier
2023-03-08 11:25:20 -08:00
parent 6eaad1352a
commit 571293a34d
12 changed files with 117 additions and 33 deletions

View File

@@ -47,6 +47,7 @@ export function completions(context: CompletionContext) {
label: toStartOfVariable ? `${openTag}${v.name}${closeTag}` : v.name,
apply: `${openTag}${v.name}${closeTag}`,
type: 'variable',
matchLen,
}))
// Filter out exact matches
.filter((o) => o.label !== toMatch.text),