> On Jul 2, 2020, at 2:04 AM, Mattias Gaertner via fpc-pascal 
> <[email protected]> wrote:
> 
>> One option would be return
>> results in partial batches (Language Server Protocol) supports this
>> but again I'm not sure if CodeTools supports this or not.
> 
> Codetools provide a list of identifiers. Since you loop over the list
> to fetch the identifiers, why not apply any filter you like directly?

The majority of the work takes place in GatherIdentifiers. This is because 
MacOSAll and CocoaAll units. They're just massive files so I'm not sure what we 
can do about them.

Maybe can we make an extension which ignores some arbitrary number of units? I 
can survive without completing things in MacOSAll because the alternative is 
slow typing and potential stuttering. I would try to remove FPCDIR and 
/usr/local/share/fpcsrc to ignore the RTL also but then I get syntax errors in 
CodeTools which prevents it from searching files. Ignoring those errors would 
be another possible solution.

Regards,
        Ryan Joseph

_______________________________________________
fpc-pascal maillist  -  [email protected]
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to