File tree Expand file tree Collapse file tree
src/extensions/codemirror Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -401,7 +401,7 @@ export const CodeEditor = ({
401401 const updateExtension = ( extension : Extension | undefined , parameterCompartment : Compartment ) : void => {
402402 if ( extension ) {
403403 currentView . current ?. dispatch ( {
404- effects : readOnlyCompartment . current . reconfigure ( extension )
404+ effects : parameterCompartment . reconfigure ( extension )
405405 } )
406406 }
407407 }
Original file line number Diff line number Diff line change @@ -45,10 +45,10 @@ export const compartment = () => {
4545 extension = ext
4646 return ext
4747 } ,
48- reconfigure : ( content : Extension ) : StateEffect < unknown > => {
48+ reconfigure : ( _content : Extension ) : StateEffect < unknown > => {
4949 return { } as StateEffect < any >
5050 } ,
51- get : ( state : EditorState ) : Extension | undefined => extension
51+ get : ( _state : EditorState ) : Extension | undefined => extension
5252 }
5353 }
5454}
You can’t perform that action at this time.
0 commit comments