> On Apr 26, 2020, at 4:46 PM, Ryan Joseph wrote:
>
> The other thing I'm stuck on with code tools. In TCodeManagerTool:
>
>function FindReferences(IdentifierCode: TCodeBuffer;
> X, Y: integer; SearchInCode: TCodeBuffer; SkipComments: boolean;
> var ListOfPCodeXYPosition:
On Mon, 27 Apr 2020, Ryan Joseph via fpc-pascal wrote:
On Apr 26, 2020, at 4:46 PM, Ryan Joseph wrote:
The other thing I'm stuck on with code tools. In TCodeManagerTool:
function FindReferences(IdentifierCode: TCodeBuffer;
X, Y: integer; SearchInCode: TCodeBuffer; SkipComment
On Mon, 27 Apr 2020 22:12:30 +0700
Ryan Joseph via fpc-pascal wrote:
> > On Apr 26, 2020, at 4:46 PM, Ryan Joseph
> > wrote:
> >
> > The other thing I'm stuck on with code tools. In TCodeManagerTool:
> >
> >function FindReferences(IdentifierCode: TCodeBuffer;
> > X, Y: integer; Se
Ryan,
Do you have a link to the LSP discord channel? I tried following the
one you posted Friday, but I got an error that I either didn't have
access to any text channels or there weren't any on the server.
Thanks!
On 4/27/2020 10:12 AM, Ryan Joseph via fpc-pascal wrote:
On Apr 26, 2020
> On Apr 28, 2020, at 4:36 AM, Zoë Peterson wrote:
>
> Ryan,
>
> Do you have a link to the LSP discord channel? I tried following the one you
> posted Friday, but I got an error that I either didn't have access to any
> text channels or there weren't any on the server.
>
> Thanks!
Here's
> On Apr 28, 2020, at 4:18 AM, Mattias Gaertner via fpc-pascal
> 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
I've learned how to use FindBlockCounterPart but it would be preferable to get
the ranges which contain the identifiers that are the start/end of the blocks.
For example the ranges of "begin" and "end" instead of the entire range which
spans from the cursor to the end of the block.
Any sugges