Skip to content

Commit be461a7

Browse files
committed
fix
1 parent 33d784e commit be461a7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/lib/editorManager.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import {
2626
wrapWithAbbreviation,
2727
} from "@emmetio/codemirror6-plugin";
2828
import createBaseExtensions from "cm/baseExtensions";
29-
import createMainEditorExtensions from "cm/mainEditorExtensions";
3029
import {
3130
setKeyBindings as applyKeyBindings,
3231
executeCommand,
@@ -45,6 +44,7 @@ import {
4544
lspDiagnosticsUiExtension,
4645
} from "cm/lsp/diagnostics";
4746
import { stopManagedServer } from "cm/lsp/serverLauncher";
47+
import createMainEditorExtensions from "cm/mainEditorExtensions";
4848
// CodeMirror mode management
4949
import {
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

Comments
 (0)