fix: disable code folding when editable regions present (#45525)

This commit is contained in:
Naomi Carrigan
2022-03-25 03:45:19 -07:00
committed by GitHub
parent a93a8fc70d
commit 6d56b777d8

View File

@ -1084,7 +1084,7 @@ const Editor = (props: EditorProps): JSX.Element => {
editorDidMount={editorDidMount}
editorWillMount={editorWillMount}
onChange={onChange}
options={options}
options={{ ...options, folding: !hasEditableRegion() }}
theme={editorTheme}
/>
</span>