fix: remove basic-setup and drawSelection on codemirror instance to resolve ::selection property

This commit is contained in:
liyasthomas
2021-11-12 07:05:34 +05:30
parent 7d7f628f6e
commit 103ef8ee0d
5 changed files with 93 additions and 42 deletions

View File

@@ -8,7 +8,6 @@ import {
} from "@codemirror/state"
import { Language, LanguageSupport } from "@codemirror/language"
import { defaultKeymap } from "@codemirror/commands"
import { basicSetup } from "@codemirror/basic-setup"
import { Completion, autocompletion } from "@codemirror/autocomplete"
import { linter } from "@codemirror/lint"
@@ -23,7 +22,7 @@ import * as O from "fp-ts/Option"
import { isJSONContentType } from "../utils/contenttypes"
import { Completer } from "./completion"
import { LinterDefinition } from "./linting/linter"
import { baseTheme, baseHighlightStyle } from "./themes/baseTheme"
import { basicSetup, baseTheme, baseHighlightStyle } from "./themes/baseTheme"
type ExtendedEditorConfig = {
mode: string