Skip to content

Commit 63f74c2

Browse files
committed
Fixes to new monaco editor build.
1 parent e6d0156 commit 63f74c2

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

mystbin/frontend/components/MonacoEditor.tsx

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import loader from '@monaco-editor/loader';
21
import {
32
monaco,
43
ControlledEditor,
@@ -7,9 +6,7 @@ import {
76
import { PropsWithoutRef } from "react";
87

98

10-
loader.config({ monaco })
11-
12-
loader.init().then((monaco) => {
9+
monaco.init().then((monaco) => {
1310
// MystBin Dark
1411
monaco.editor.defineTheme("mystBinDark", {
1512
base: "vs-dark",
@@ -96,12 +93,12 @@ export default function MonacoEditor(
9693
language={language}
9794
options={{
9895
contextmenu: true,
99-
suggest: false,
96+
suggest: {},
10097
quickSuggestions: false,
10198
minimap: { enabled: false },
10299
readOnly: readOnly,
103-
lineDecorationsWidth: "0",
104-
lineNumbersMinChars: "2",
100+
lineDecorationsWidth: 0,
101+
lineNumbersMinChars: 2,
105102
}}
106103
/>
107104
);

0 commit comments

Comments
 (0)