From da8e75a9894631df0c18f73d399b7ea2792cab33 Mon Sep 17 00:00:00 2001 From: Fabio Ghirardello Date: Wed, 29 Oct 2025 13:38:35 -0400 Subject: [PATCH] Add options for Monaco editor configuration Added options variable for editor configuration. --- custom_components/reflex_monaco/monaco.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/custom_components/reflex_monaco/monaco.py b/custom_components/reflex_monaco/monaco.py index 9e11a12..bf5b9cb 100644 --- a/custom_components/reflex_monaco/monaco.py +++ b/custom_components/reflex_monaco/monaco.py @@ -16,6 +16,10 @@ class MonacoComponent(rx.Component): # The theme to use for the editor. theme: rx.Var[str] = rx.color_mode_cond("light", "vs-dark") + # The options, refer to Monaco interface IStandaloneEditorConstructionOptions at + # https://microsoft.github.io/monaco-editor/docs.html#interfaces/editor.IStandaloneEditorConstructionOptions.html + options: rx.Var[dict] + # The line to jump to in the editor. line: rx.Var[int] = rx.Var.create(1)