diff --git a/lib/lint-scroll-marker.js b/lib/lint-scroll-marker.js index 8d98f0b..207f695 100644 --- a/lib/lint-scroll-marker.js +++ b/lib/lint-scroll-marker.js @@ -29,11 +29,13 @@ async function clearLayerForMessage(message, cleanedLayers) { return; } - const errorMarkerLayer = scrollMarker.getLayer(editor, "lint-scroll-marker", "#fb392e"); - const warnMarkerLayer = scrollMarker.getLayer(editor, "link-scroll-marker", "#ffaa00"); + const errorMarkerLayer = scrollMarker.getLayer(editor, "lint-scroll-marker-error", "#fb392e"); + const warnMarkerLayer = scrollMarker.getLayer(editor, "link-scroll-marker-warn", "#fd8926"); + const infoMarkerLayer = scrollMarker.getLayer(editor, "link-scroll-marker-info", "rgba(20, 146, 255, 0.69)"); await errorMarkerLayer.clear(); await warnMarkerLayer.clear(); + await infoMarkerLayer.clear(); cleanedLayers.push(lintMessage.location.file); } @@ -51,11 +53,14 @@ function addMarkerForMessage(message) { return; } - const errorMarkerLayer = scrollMarker.getLayer(editor, "lint-scroll-marker", "#fb392e"); - const warnMarkerLayer = scrollMarker.getLayer(editor, "link-scroll-marker", "#ffaa00"); + const errorMarkerLayer = scrollMarker.getLayer(editor, "lint-scroll-marker-error", "#fb392e"); + const warnMarkerLayer = scrollMarker.getLayer(editor, "link-scroll-marker-warn", "#fd8926"); + const infoMarkerLayer = scrollMarker.getLayer(editor, "link-scroll-marker-info", "rgba(20, 146, 255, 0.69)"); if(lintMessage.type === "Warning") warnMarkerLayer.addMarker(lintMessage.location.position.start.row); + else if(lintMessage.type === "Info") + infoMarkerLayer.addMarker(lintMessage.location.position.start.row); else errorMarkerLayer.addMarker(lintMessage.location.position.start.row); }