Fix syntax highlighting on code pane open/close (#3083)
This commit is contained in:
@ -163,7 +163,7 @@ export function useCodeMirror(props: UseCodeMirror) {
|
|||||||
effects: StateEffect.reconfigure.of(targetExtensions),
|
effects: StateEffect.reconfigure.of(targetExtensions),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}, [targetExtensions])
|
}, [targetExtensions, view, isFirstRender])
|
||||||
|
|
||||||
return { view, setView, container, setContainer, state, setState }
|
return { view, setView, container, setContainer, state, setState }
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user