Невозможно обновить желоб с ошибками ворса - PullRequest
0 голосов
/ 12 ноября 2018

Я получаю updateLinting - функция не найдена.

var codeMirrorOptions = {
  lineNumbers: true,
  mode: 'text/x-yaml', // we are using the yaml editor
  gutters: ["CodeMirror-linenumbers", "CodeMirror-foldgutter", "CodeMirror-lint-markers"],
  foldGutter: {
    rangeFinder: new CodeMirror.fold.combine(CodeMirror.fold.indent, CodeMirror.fold.comment)
  },
  "lint": {
    "getAnnotations": checkYAMLForErrors
  }
};

function checkYAMLForErrors(cm, updateLinting, options) {
  var errors = CodeMirror.lint.yaml(cm);
  updateLinting(cm, errors);
};

Может кто-нибудь сказать мне, что мне не хватает?

...