Debounce autocomplete

This commit is contained in:
Gregory Schier
2023-03-08 11:25:20 -08:00
parent 657c6ad9a9
commit f976397283
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),