From b53abb5f9f536f952500c253031c9748532afbf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Losada=20Hern=C3=A1ndez?= Date: Sun, 29 Mar 2026 01:46:51 +0100 Subject: [PATCH] change highlight when changing tabs --- client/components/codeEditor/codeEditor.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/components/codeEditor/codeEditor.jsx b/client/components/codeEditor/codeEditor.jsx index 1dde9eaf5..c326a807e 100644 --- a/client/components/codeEditor/codeEditor.jsx +++ b/client/components/codeEditor/codeEditor.jsx @@ -253,7 +253,7 @@ const CodeEditor = forwardRef( view.dispatch({ effects : highlightCompartment.reconfigure([customHighlightPlugin, highlightExtension]), }); - }, [renderer]); + }, [renderer, tab]); useImperativeHandle(ref, ()=>({ getValue : ()=>viewRef.current.state.doc.toString(),