preUpdateLinting hack isn't needed since CM 5.33

This commit is contained in:
tophf 2018-03-03 23:11:15 +03:00
parent 513845c289
commit 77d44c233e
2 changed files with 2 additions and 12 deletions

View File

@ -29,15 +29,9 @@
})),
};
function invokeHelper(code, options, cm) {
function invokeHelper(code) {
const config = linterConfig.getCurrent();
return linterConfig.invokeWorker({code, config})
.then(cookResults[linterConfig.getName()])
.then(results => {
if (options && typeof options.preUpdateLinting === 'function') {
options.preUpdateLinting(cm);
}
return results;
});
.then(cookResults[linterConfig.getName()]);
}
})();

View File

@ -43,11 +43,7 @@ var linterConfig = {
return CodeMirror.lint && CodeMirror.lint[linter] ? {
getAnnotations: CodeMirror.lint[linter],
delay: prefs.get('editor.lintDelay'),
preUpdateLinting(cm) {
cm.startOperation();
},
onUpdateLinting(annotationsNotSorted, annotations, cm) {
cm.endOperation();
updateLintReport(cm);
},
} : false;