We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34f6769 commit d2c2e28Copy full SHA for d2c2e28
lib/components/Output/OutputEditor.jsx
@@ -4,8 +4,9 @@ import { Button } from '@carbon/react';
4
import { Copy } from '@carbon/icons-react';
5
6
import { EditorState } from '@codemirror/state';
7
-import { EditorView } from '@codemirror/view';
+import { EditorView, keymap } from '@codemirror/view';
8
import { json } from '@codemirror/lang-json';
9
+import { foldGutter, unfoldAll, foldKeymap } from '@codemirror/language';
10
import theme from '../shared/CodeMirrorTheme';
11
12
@@ -31,6 +32,8 @@ export default function OutputEditor({ value }) {
31
32
EditorState.readOnly.of(true),
33
EditorView.editable.of(false),
34
EditorView.lineWrapping,
35
+ foldGutter(),
36
+ keymap.of(foldKeymap),
37
theme,
38
]
39
});
0 commit comments