From 6d56b777d884b96944f01da5fa43ba0e94729f9e Mon Sep 17 00:00:00 2001 From: Naomi Carrigan Date: Fri, 25 Mar 2022 03:45:19 -0700 Subject: [PATCH] fix: disable code folding when editable regions present (#45525) --- client/src/templates/Challenges/classic/editor.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/templates/Challenges/classic/editor.tsx b/client/src/templates/Challenges/classic/editor.tsx index 26026ece36..3febafa343 100644 --- a/client/src/templates/Challenges/classic/editor.tsx +++ b/client/src/templates/Challenges/classic/editor.tsx @@ -1084,7 +1084,7 @@ const Editor = (props: EditorProps): JSX.Element => { editorDidMount={editorDidMount} editorWillMount={editorWillMount} onChange={onChange} - options={options} + options={{ ...options, folding: !hasEditableRegion() }} theme={editorTheme} />