Skip to content

@jsvision/code-editor / CodeEditorWindowOptions

Interface: CodeEditorWindowOptions

Defined in: code-editor/src/ui/code-editor-window.ts:10

Construction options for standard window composition around a code editor.

Properties

controller

readonly controller: CodeEditorController

Defined in: code-editor/src/ui/code-editor-window.ts:11


i18n?

readonly optional i18n?: I18n

Defined in: code-editor/src/ui/code-editor-window.ts:13

Locale-bound service shared by the window chrome and its editor. Defaults to isolated English.


lineNumbers?

readonly optional lineNumbers?: boolean

Defined in: code-editor/src/ui/code-editor-window.ts:16

Shows the editor's optional fixed line-number gutter. Defaults to false.


onDocumentChange?

readonly optional onDocumentChange?: () => void

Defined in: code-editor/src/ui/code-editor-window.ts:18

Runs after an accepted editor mutation so the host can refresh language services.

Returns

void


title?

readonly optional title?: string

Defined in: code-editor/src/ui/code-editor-window.ts:14