[fpc-pascal] Pascal Language Server
Ryan Joseph
genericptr at gmail.com
Tue Apr 28 04:34:36 CEST 2020
> On Apr 28, 2020, at 4:18 AM, Mattias Gaertner via fpc-pascal <fpc-pascal at lists.freepascal.org> wrote:
>
> I added an example for FindReferences:
> lazarus/components/codetools/example/findreferences.lpi
I see now, there are more steps involved than I thought.
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?
Regards,
Ryan Joseph
More information about the fpc-pascal
mailing list