Skip to content

Commit 51595c2

Browse files
authored
Enable reactive reference highlighting by default (#7483)
This is now a mature feature, so we're changing the default from off to on.
1 parent a108ae9 commit 51595c2

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

frontend/src/core/codemirror/cm.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ export const setupCodeMirror = (opts: CodeMirrorSetupOpts): Extension[] => {
152152
// Reactive references highlighting
153153
reactiveReferencesBundle(
154154
cellId,
155-
displayConfig.reference_highlighting ?? false,
155+
displayConfig.reference_highlighting ?? true,
156156
),
157157
];
158158
};

frontend/src/core/config/__tests__/config-schema.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ test("default UserConfig - empty", () => {
6565
"default_table_max_columns": 50,
6666
"default_table_page_size": 10,
6767
"default_width": "medium",
68-
"reference_highlighting": false,
68+
"reference_highlighting": true,
6969
"theme": "light",
7070
},
7171
"experimental": {},
@@ -133,7 +133,7 @@ test("default UserConfig - one level", () => {
133133
"default_table_max_columns": 50,
134134
"default_table_page_size": 10,
135135
"default_width": "medium",
136-
"reference_highlighting": false,
136+
"reference_highlighting": true,
137137
"theme": "light",
138138
},
139139
"experimental": {},

frontend/src/core/config/config-schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ export const UserConfigSchema = z
145145
return width;
146146
}),
147147
locale: z.string().nullable().optional(),
148-
reference_highlighting: z.boolean().prefault(false),
148+
reference_highlighting: z.boolean().prefault(true),
149149
})
150150
.prefault({}),
151151
package_management: z

marimo/_config/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ class PartialMarimoConfig(TypedDict, total=False):
632632
"dataframes": "rich",
633633
"default_table_page_size": 10,
634634
"default_table_max_columns": 50,
635-
"reference_highlighting": False,
635+
"reference_highlighting": True,
636636
},
637637
"formatting": {"line_length": 79},
638638
"keymap": {"preset": "default", "overrides": {}},

0 commit comments

Comments
 (0)