[fpc-pascal] CodeTools reduce number of completions

Ryan Joseph genericptr at gmail.com
Thu Jul 2 03:05:28 CEST 2020



> On Jul 2, 2020, at 2:04 AM, Mattias Gaertner via fpc-pascal <fpc-pascal at lists.freepascal.org> 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



More information about the fpc-pascal mailing list