[fpc-pascal] CodeTools reduce number of completions
Mattias Gaertner
nc-gaertnma at netcologne.de
Wed Jul 1 21:04:21 CEST 2020
On Wed, 1 Jul 2020 17:50:50 +0700
Ryan Joseph via fpc-pascal <fpc-pascal at lists.freepascal.org> wrote:
> I'm using CodeToolBoss.GatherIdentifiers to get completions but with
> some units I'm getting 50k identifiers which is simply too much and
> too slow. Maybe of these are coming from the RTL I think and I would
> be ok with limited some of these results if possible.
>
> Is there anyway to tell CodeTools to ignore certain units or any
> other way to reduce the number of results?
So far only the prefix.
> 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?
Mattias
More information about the fpc-pascal
mailing list