ServerCompletionConfig

data class ServerCompletionConfig(val override: Boolean = false, val validFor: Regex? = null)

Configuration for serverCompletion.

Mirrors the shape of the options object upstream @codemirror/lsp-client's serverCompletion accepts.

Parameters

override

When true, the language-server completion source replaces all other completion sources (upstream's autocompletion({override: [...]}) path). When false (the default) it is installed as the editor's completion source — see the deviation note on serverCompletion.

validFor

A custom Regex used as the CompletionResult.validFor for results, allowing the cached list to be reused as the user keeps typing. When null, a regex derived from the result items' prefixes is used (matching upstream's prefixRegexp).

Constructors

Link copied to clipboard
constructor(override: Boolean = false, validFor: Regex? = null)

Properties

Link copied to clipboard
Link copied to clipboard