File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/components/interactive-code-block Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,8 @@ import { EditorView } from "@codemirror/view"
3
3
import { EditorState } from "@codemirror/state"
4
4
import { json } from "@codemirror/lang-json"
5
5
import { history } from "@codemirror/commands"
6
- import { syntaxHighlighting , defaultHighlightStyle } from "@codemirror/language"
6
+ import { syntaxHighlighting } from "@codemirror/language"
7
+ import { codeMirrorThemeExtension } from "./codemirror-theme"
7
8
8
9
interface VariableEditorProps {
9
10
value : string
@@ -49,7 +50,7 @@ export class VariableEditor extends Component<VariableEditorProps> {
49
50
extensions : [
50
51
history ( ) ,
51
52
json ( ) ,
52
- syntaxHighlighting ( defaultHighlightStyle ) ,
53
+ codeMirrorThemeExtension ,
53
54
EditorView . updateListener . of ( update => {
54
55
if ( update . docChanged && ! this . ignoreChangeEvent ) {
55
56
this . cachedValue = update . state . doc . toString ( )
You can’t perform that action at this time.
0 commit comments