@@ -26,7 +26,6 @@ import {
2626 wrapWithAbbreviation ,
2727} from "@emmetio/codemirror6-plugin" ;
2828import createBaseExtensions from "cm/baseExtensions" ;
29- import createMainEditorExtensions from "cm/mainEditorExtensions" ;
3029import {
3130 setKeyBindings as applyKeyBindings ,
3231 executeCommand ,
@@ -45,6 +44,7 @@ import {
4544 lspDiagnosticsUiExtension ,
4645} from "cm/lsp/diagnostics" ;
4746import { stopManagedServer } from "cm/lsp/serverLauncher" ;
47+ import createMainEditorExtensions from "cm/mainEditorExtensions" ;
4848// CodeMirror mode management
4949import {
5050 getModeForPath ,
@@ -771,9 +771,7 @@ async function EditorManager($header, $body) {
771771 touchSelectionUpdateExtension,
772772 searchExtension : search ( ) ,
773773 // Ensure read-only can be toggled later via compartment
774- readOnlyExtension : readOnlyCompartment . of (
775- EditorState . readOnly . of ( false ) ,
776- ) ,
774+ readOnlyExtension : readOnlyCompartment . of ( EditorState . readOnly . of ( false ) ) ,
777775 // Editor options driven by settings via compartments
778776 optionExtensions : getBaseExtensionsFromOptions ( ) ,
779777 } ) ,
0 commit comments