mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-22 21:20:08 +02:00
IDE, alow search for unit in project only (without packages)
git-svn-id: trunk@32334 -
This commit is contained in:
parent
f188c49a1a
commit
7fc60239cb
@ -14126,12 +14126,14 @@ begin
|
||||
SearchPath:=TrimSearchPath(SearchPath,BaseDir);
|
||||
if SearchInPath(StartUnitPath,AFilename,Result) then exit;
|
||||
|
||||
if not(fsfSkipPackages in Flags) then begin
|
||||
// search include file in source directories of all required packages
|
||||
SearchFile:=AFilename;
|
||||
Result:=PkgBoss.FindIncludeFileInProjectDependencies(Project1,SearchFile);
|
||||
{$IFDEF VerboseFindSourceFile}
|
||||
debugln(['TMainIDE.FindSourceFile trying packages "',SearchPath,'" Result=',Result]);
|
||||
{$ENDIF}
|
||||
end;
|
||||
if Result<>'' then exit;
|
||||
|
||||
Result:=SearchIndirectIncludeFile;
|
||||
|
@ -124,7 +124,8 @@ type
|
||||
fsfSearchForProject,
|
||||
fsfUseIncludePaths,
|
||||
fsfUseDebugPath,
|
||||
fsfMapTempToVirtualFiles
|
||||
fsfMapTempToVirtualFiles,
|
||||
fsfSkipPackages
|
||||
);
|
||||
TFindSourceFlags = set of TFindSourceFlag;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user