It works fine when typing forward, but when I try to edit an existing doc, it doesn’t trigger the completion source at all.
function completionSource(context: CompletionContext): CompletionResult | null {
const before = context.matchBefore(/\w+/);
if (!before) {
return null;
}
return {
from: before.from,
options: [{ label: 'hello' }]
}
}
override: [completionSource],