Skip to content

Commit

Permalink
Merge pull request #2907 from LorenzoBettini/lb_2792_marker_location
Browse files Browse the repository at this point in the history
[2792] don't set marker.LOCATION and just set LINE_NUMBER
  • Loading branch information
LorenzoBettini authored Jan 12, 2024
2 parents 47a553b + 66bfdb2 commit 32b61ee
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,6 @@ protected void setMarkerAttributes(Issue issue, IResource resource, IMarker mark
// Do this in one single setAttributes() call, as each set of an attribute is a workspace operation
Map<String, Object> attributes = new HashMap<>(16);

String lineNR = "";
if (issue.getLineNumber() != null) {
lineNR = "line: " + issue.getLineNumber() + " ";
}
attributes.put(IMarker.LOCATION, lineNR + resource.getFullPath().toString());
attributes.put(Issue.CODE_KEY, issue.getCode());
attributes.put(IMarker.SEVERITY, getSeverity(issue));
attributes.put(IMarker.CHAR_START, issue.getOffset());
Expand Down

0 comments on commit 32b61ee

Please sign in to comment.