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"
33import { EditorState } from "@codemirror/state"
44import { json } from "@codemirror/lang-json"
55import { history } from "@codemirror/commands"
6- import { syntaxHighlighting , defaultHighlightStyle } from "@codemirror/language"
6+ import { syntaxHighlighting } from "@codemirror/language"
7+ import { codeMirrorThemeExtension } from "./codemirror-theme"
78
89interface VariableEditorProps {
910 value : string
@@ -49,7 +50,7 @@ export class VariableEditor extends Component<VariableEditorProps> {
4950 extensions : [
5051 history ( ) ,
5152 json ( ) ,
52- syntaxHighlighting ( defaultHighlightStyle ) ,
53+ codeMirrorThemeExtension ,
5354 EditorView . updateListener . of ( update => {
5455 if ( update . docChanged && ! this . ignoreChangeEvent ) {
5556 this . cachedValue = update . state . doc . toString ( )
You can’t perform that action at this time.
0 commit comments