[fpc-pascal] Pascal Language Server
nc-gaertnma at netcologne.de
Tue Apr 28 10:06:01 CEST 2020
On Tue, 28 Apr 2020 09:34:36 +0700
Ryan Joseph via fpc-pascal <fpc-pascal at lists.freepascal.org> wrote:
> > On Apr 28, 2020, at 4:18 AM, Mattias Gaertner via fpc-pascal
> > <fpc-pascal at lists.freepascal.org> wrote:
> LSP doesn't have a concept of the "main file" but this seems to
> require the main program file to start the search from. All we get
> from LSP is the workspace root directory and I've passed in some -Fu
> paths via FPCOptions.
> Is there a workaround to this or can we get the main program from
> code tools?
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.
More information about the fpc-pascal