Skip to content

@jsvision/code-editor / CodeEditorMutationSink

Interface: CodeEditorMutationSink

Defined in: code-editor/src/integration.ts:35

A single-owner mutation adapter used by a language-service coordinator.

The document identity is part of the adapter so a coordinator cannot accidentally bind to a controller for another document.

Properties

document

readonly document: CodeEditorDocumentModel

Defined in: code-editor/src/integration.ts:37

Exact model owned by this sink.

Methods

apply()

apply(input): DocumentMutationResult

Defined in: code-editor/src/integration.ts:39

Applies one normalized mutation or returns a typed inert rejection.

Parameters

input

CodeEditorMutationInput

Returns

DocumentMutationResult