mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-10-02 12:29:56 +02:00
cody: dictionary: use only units
git-svn-id: trunk@36478 -
This commit is contained in:
parent
7d623db285
commit
30b303c406
@ -43,7 +43,7 @@ uses
|
||||
Buttons, PackageIntf, LazIDEIntf, SrcEditorIntf, ProjectIntf, CompOptsIntf,
|
||||
IDEDialogs, CodeCache, BasicCodeTools, CustomCodeTool, CodeToolManager,
|
||||
UnitDictionary, CodeTree, LinkScanner, DefineTemplates, CodeToolsStructs,
|
||||
CodyStrConsts, CodyUtils, CodyOpts;
|
||||
FindDeclarationTool, CodyStrConsts, CodyUtils, CodyOpts;
|
||||
|
||||
const
|
||||
PackageNameFPCSrcDir = 'FPCSrcDir';
|
||||
@ -416,6 +416,8 @@ procedure TCodyUnitDictionary.ToolTreeChanged(Tool: TCustomCodeTool;
|
||||
NodesDeleting: boolean);
|
||||
begin
|
||||
if fParsingTool=Tool then exit;
|
||||
if not (Tool is TFindDeclarationTool) then exit;
|
||||
if TFindDeclarationTool(Tool).GetSourceType<>ctnUnit then exit;
|
||||
//debugln(['TCodyUnitDictionary.ToolTreeChanged ',Tool.MainFilename]);
|
||||
if fQueuedTools.Find(Tool)<>nil then exit;
|
||||
fQueuedTools.Add(Tool);
|
||||
|
Loading…
Reference in New Issue
Block a user