mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 01:36:01 +02:00
- show external location if it is not empty in problems details view
This commit is contained in:
parent
2fdba57f07
commit
bec406f7dd
1 changed files with 3 additions and 0 deletions
|
@ -70,6 +70,9 @@ public abstract class AbstractCodanProblemDetailsProvider {
|
|||
public String getStyledProblemMessage() {
|
||||
String message = escapeForLink(getProblemMessage());
|
||||
String loc = marker.getResource().getFullPath().toOSString();
|
||||
String loc2 = marker.getAttribute(IMarker.LOCATION, ""); //$NON-NLS-1$
|
||||
if (loc2.length()>0)
|
||||
loc=loc2;
|
||||
int line = marker.getAttribute(IMarker.LINE_NUMBER, 0);
|
||||
return message + "\n" + loc + ":" + line; //$NON-NLS-1$//$NON-NLS-2$
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue