Extend editor feedback to support decorations (background coloring) instead of default Markers
Extend
editor-feedback.json
format to have an optionaltype
property with values:Marker
(default if not provided) andDecoration
.
When usingDecoration
, you need to provide aclassName
(one ofbackground-blue
,background-red
,background-green
orbackground-yellow
)Feedback items 4 to 6 in this example use the new Decoration type:
Submitted by Elmer van Chastelet on 12 May 2023 at 13:31[ { "file": "SOLUTION", "severity": "Error", "message": "Not correctly configured! Solution not run.", "startLineNumber": 1, "endLineNumber": 1 }, { "file": "TEST", "severity": "Error", "message": "Not correctly configured! Tests not run.", "startLineNumber": 1, "endLineNumber": 1 }, { "type": "Marker", "file": "LIBRARY", "severity": "Error", "message": "Not correctly configured! Library not run.", "startLineNumber": 1, "endLineNumber": 1 }, { "type": "Decoration", "file": "SOLUTION", "className": "background-red", "message": "Red highlight", "startLineNumber": 2, "endLineNumber": 2 }, { "type": "Decoration", "file": "TEST", "className": "background-yellow", "message": "Yellow highlight", "startLineNumber": 2, "endLineNumber": 2 }, { "type": "Decoration", "file": "LIBRARY", "className": "background-blue", "message": "Blue highlight", "startLineNumber": 2, "endLineNumber": 2 } ]