mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-07 21:38:00 +02:00
IDE: code help: if ndoe in include file show link to unit
git-svn-id: trunk@51596 -
This commit is contained in:
parent
edcf3ab650
commit
44e40b779d
@ -2559,6 +2559,7 @@ begin
|
||||
finally
|
||||
ElementNames.Free;
|
||||
FreeListOfPCodeXYPosition(ListOfPCodeXYPosition);
|
||||
|
||||
// Add package name
|
||||
s:=OwnerToFPDocHint(AnOwner);
|
||||
if s<>'' then
|
||||
@ -2674,6 +2675,13 @@ begin
|
||||
Tool.CleanPosToCaret(Tool.Tree.Root.StartPos,XYPos);
|
||||
end;
|
||||
Result:=Result+' '+SourcePosToFPDocHint(XYPos)+LineEnding;
|
||||
|
||||
if (XYPos.Code<>nil) and (CompareFilenames(Tool.MainFilename,XYPos.Code.Filename)<>0)
|
||||
then begin
|
||||
// node in include file => show link to unit
|
||||
Result:=Result+'<br> unit '+SourcePosToFPDocHint(Tool.MainFilename,1,1,Tool.GetSourceName)+LineEnding;
|
||||
end;
|
||||
|
||||
Result:=Result+'</div>'+LineEnding;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user