This is kind of on the same level as this thread: Async completion.info
I am implementing my own Language and the autocomplete values I will be getting with an ajax call. I am having trouble figuring out how I may update my language after its instantiated with autocomplete values, or even if that is possible?
// Initial empty completions
const completions = newLanguage.data.of({
autocomplete: completeFromList([]),
})
const language = function () {
return new LanguageSupport(newLanguage, [completions]);
};
Since completions is an extension into LanguageSupport i thought i might be able to Compartment
it but i don’t know how to update the language? Is there a way?
Thanks.