CompletionConfig

constructor(activateOnTyping: Boolean = true, selectOnOpen: Boolean = true, closeOnBlur: Boolean = true, maxRenderedOptions: Int = 100, icons: Boolean = true, defaultKeymap: Boolean = true, override: List<CompletionSource>? = null, asyncOverride: List<SuspendCompletionSource>? = null)

Parameters

activateOnTyping

Whether to show completions as the user types.

selectOnOpen

Whether to select the first completion on open.

closeOnBlur

Whether to close the completion list when the editor loses focus.

maxRenderedOptions

Maximum number of options to render at once.

icons

Whether to show type icons next to completions.

override

Optional override completion sources that replace the defaults.

asyncOverride

Optional suspend completion sources. Unlike override (which must return synchronously), these are launched on the editor's coroutine scope and their result dispatched when it resolves — the only way to drive an async source (e.g. a language server) on wasmJs, where a blocking bridge is impossible. Tried after override yields nothing.