> On Apr 25, 2020, at 2:02 PM, Mattias Gaertner via fpc-pascal 
> <fpc-pascal@lists.freepascal.org> wrote:
> 
>> I have FindCodeContext working correctly I believe because ProcName
>> from TCodeContextInfo returns the correct name of the function. In
>> TCodeContextInfoItem the params string list is nil though. Shouldn't
>> that contain the list of parameters? Not sure how this intended to be
>> used if that list of empty.
> 
> Is X,Y inside the brackets?

You mean ()? Yes it is. ParameterIndex also increments so for example

DoThis(a,b,c,^) 

will give ParameterIndex 4 if the cursor is at ^.

Is Params supposed to be a list of the parameters in the format "name: type"? 
If so that's what I need to return along with the parameter index. See

https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocument_signatureHelp

Regards,
        Ryan Joseph

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to