[fpc-pascal] Pascal Language Server

Michael Van Canneyt michael at freepascal.org
Tue Apr 28 10:26:12 CEST 2020



On Tue, 28 Apr 2020, Ryan Joseph via fpc-pascal wrote:

>
>
>> On Apr 28, 2020, at 3:06 PM, Mattias Gaertner via fpc-pascal <fpc-pascal at lists.freepascal.org> wrote:
>> 
>> You can add any number of files as start. Just call AddStartUnit
>> for every starting module.
>> For example add all Pascal modules of the workspace directory.
>
> In TCodeToolsOptions we provide FPCOptions and ProjectDir so code tools
> should have a number of directories to search for.  At startup does it
> parse these files automatically or otherwise scan for pascal files?  I can
> rescan myself but I thought code tools may already have this loaded up and
> ready to us.

That's a wrong approach. Pascal units are in a uses-tree. 
You need a starting point, the top of the tree: a single module.

Michael.


More information about the fpc-pascal mailing list