[fpc-pascal] Pascal Language Server

Mattias Gaertner nc-gaertnma at netcologne.de
Fri Apr 24 11:56:33 CEST 2020


On Fri, 24 Apr 2020 16:40:14 +0700
Ryan Joseph via fpc-pascal <fpc-pascal at lists.freepascal.org> wrote:

> > On Apr 24, 2020, at 4:35 PM, Mattias Gaertner via fpc-pascal
> > <fpc-pascal at lists.freepascal.org> wrote:
> > 
> > codetools that scans Lazarus packages.
> > 
> > In Short: You can omit LAZARUSDIR.
> > 
> > Setting PP might be useful.
> > 
> > You can add unit and include paths:
> > https://wiki.freepascal.org/Codetools#Defining_search_paths_and_macros  
> 
> Setting FPCDIR from the editor fixed the problem. I'm not crazy about
> getting tons of completions from the System module though. Lots of
> clutter for things I never use. Is there a way to hide those?

In your loop 
Completion.detail:=Identifier.Node.Desc...

Note: Always check if Node<>nil.

You can check the unit via

Tool:=Identifier.Tool;
If Tool<>nil then
  if sametext(ExtractFilenameOnly(Tool.MainFilename),'system') then
    ...hide...

Mattias


More information about the fpc-pascal mailing list