CompletionConfig

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

Configuration for the autocompletion extension.

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.

Constructors

Link copied to clipboard
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)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard