feat: linting for raw key value lang editors

This commit is contained in:
Andrew Bastin
2022-02-16 01:37:15 +05:30
parent c3759a400d
commit 4d5a90f14f
4 changed files with 30 additions and 3 deletions

View File

@@ -148,6 +148,7 @@ import { useCodemirror } from "~/helpers/editor/codemirror"
import { restHeaders$, setRESTHeaders } from "~/newstore/RESTSession"
import { commonHeaders } from "~/helpers/headers"
import { useI18n, useStream, useToast } from "~/helpers/utils/composables"
import linter from "~/helpers/editor/linting/rawKeyValue"
const t = useI18n()
const toast = useToast()
@@ -163,7 +164,7 @@ useCodemirror(bulkEditor, bulkHeaders, {
mode: "text/x-yaml",
placeholder: `${t("state.bulk_mode_placeholder")}`,
},
linter: null,
linter,
completer: null,
environmentHighlights: true,
})