Skip to content

Commit

Permalink
fix: Allow setAnnotations to use custom className
Browse files Browse the repository at this point in the history
Make setAnnotations could use custom className

#4362 from FavorMylikes/patch-1
  • Loading branch information
andrewnester authored Jun 28, 2022
2 parents fb3820a + 3948937 commit f505879
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/ace/layer/gutter.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,10 @@ var Gutter = function(parentEl) {
rowInfo.text.push(annoText);

var type = annotation.type;
if (type == "error")
var className = annotation.className;
if (className)
rowInfo.className = className;
else if (type == "error")
rowInfo.className = " ace_error";
else if (type == "warning" && rowInfo.className != " ace_error")
rowInfo.className = " ace_warning";
Expand Down

0 comments on commit f505879

Please sign in to comment.