Skip to content

Commit a843f6b

Browse files
committed
Use the same colors for VariableEditor
1 parent 812b8b4 commit a843f6b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/interactive-code-block/variable-editor.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import { EditorView } from "@codemirror/view"
33
import { EditorState } from "@codemirror/state"
44
import { json } from "@codemirror/lang-json"
55
import { history } from "@codemirror/commands"
6-
import { syntaxHighlighting, defaultHighlightStyle } from "@codemirror/language"
6+
import { syntaxHighlighting } from "@codemirror/language"
7+
import { codeMirrorThemeExtension } from "./codemirror-theme"
78

89
interface 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()

0 commit comments

Comments
 (0)