[fpc-pascal] Pascal Language Server

Ryan Joseph genericptr at gmail.com
Sat Apr 25 09:08:58 CEST 2020



> On Apr 25, 2020, at 2:02 PM, Mattias Gaertner via fpc-pascal <fpc-pascal at 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



More information about the fpc-pascal mailing list