@jsvision/code-editor / CodeEditorOptions
Interface: CodeEditorOptions
Defined in: code-editor/src/ui/code-editor.ts:38
Construction options for a terminal-native code editor view.
Properties
controller
readonlycontroller:CodeEditorController
Defined in: code-editor/src/ui/code-editor.ts:39
i18n?
readonlyoptionali18n?:I18n
Defined in: code-editor/src/ui/code-editor.ts:41
Locale-bound service used for editor-owned presentation. Defaults to isolated English.
keyBindingOverrides?
readonlyoptionalkeyBindingOverrides?:Readonly<Record<string,CodeEditorCommand>>
Defined in: code-editor/src/ui/code-editor.ts:44
Exact existing commands that explicitly authorize canonical custom-binding collisions.
keyBindings?
readonlyoptionalkeyBindings?:Readonly<Record<string,CodeEditorCommand>>
Defined in: code-editor/src/ui/code-editor.ts:42
lineNumbers?
readonlyoptionallineNumbers?:boolean
Defined in: code-editor/src/ui/code-editor.ts:46
Shows the fixed line-number gutter when the viewport is wide enough. Defaults to false.
onDocumentChange?
readonlyoptionalonDocumentChange?: () =>void
Defined in: code-editor/src/ui/code-editor.ts:50
Runs after an accepted text mutation so hosts can schedule revision-aware language work.
Returns
void
themeSource?
readonlyoptionalthemeSource?:CodeEditorThemeSource
Defined in: code-editor/src/ui/code-editor.ts:48
Optional live hybrid theme source resolved from application roles during drawing.