Skip to content

@jsvision/code-editor / resolveCodeEditorTheme

Function: resolveCodeEditorTheme()

resolveCodeEditorTheme(source, context): ResolvedCodeEditorTheme

Defined in: code-editor/src/theme/resolve.ts:43

Resolves the hybrid editor theme without invoking accessors or retaining caller-owned data.

Resolution reads only the fixed theme schema. Unknown properties are ignored without enumeration, so a wide hostile object cannot turn one repaint into document-sized work.

Parameters

source

CodeEditorThemeSource

context

ResolveCodeEditorThemeContext

Returns

ResolvedCodeEditorTheme

Example

ts
const resolved = resolveCodeEditorTheme({ kind: 'application' }, { applicationTheme, caps });