I'd like to write a custom completion provider, to supplement other completion providers active in the editor. Where is Monaco's API for this, and what is an example?
monaco-editor npm version: 0.X.Y
Browser:
OS:
You can call monaco.langauges.registerCompletionItemProvider, to which you provide a language id and a CompletionItemProvider. Your CompletionItemProvider should just implement this interface. It should be fairly straightforward from there, looking over that typings file is often really helpful.
There is also a full working example at https://microsoft.github.io/monaco-editor/playground.html#extending-language-services-completion-provider-example
Most helpful comment
You can call
monaco.langauges.registerCompletionItemProvider, to which you provide a language id and aCompletionItemProvider. YourCompletionItemProvidershould just implement this interface. It should be fairly straightforward from there, looking over that typings file is often really helpful.