> On Apr 28, 2020, at 4:18 AM, Mattias Gaertner via fpc-pascal > <fpc-pascal@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 _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal