Skip to content

Commit

Permalink
[lint addon] Fix a regression that broke the getAnnotations option
Browse files Browse the repository at this point in the history
Introduced in 70c615c
  • Loading branch information
marijnh committed Jul 21, 2021
1 parent 50aa8c0 commit 5180d1e
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions addon/lint/lint.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,12 @@
highlightLines: false,
tooltips: true,
delay: 500,
lintOnChange: true
lintOnChange: true,
getAnnotations: null,
async: false,
selfContain: null,
formatAnnotation: null,
onUpdateLinting: null
}

function clearMarks(cm) {
Expand Down Expand Up @@ -218,9 +223,9 @@
// use original annotations[line] to show multiple messages
if (state.hasGutter)
cm.setGutterMarker(line, GUTTER_ID, makeMarker(cm, tipLabel, maxSeverity, annotations[line].length > 1,
state.options.tooltips));
options.tooltips));

if (state.options.highlightLines)
if (options.highlightLines)
cm.addLineClass(line, "wrap", LINT_LINE_ID + maxSeverity);
}
if (options.onUpdateLinting) options.onUpdateLinting(annotationsNotSorted, annotations, cm);
Expand Down

0 comments on commit 5180d1e

Please sign in to comment.