[fpc-pascal] Pascal Language Server

Ryan Joseph genericptr at gmail.com
Sat Apr 25 05:53:17 CEST 2020


In the FPC streaming system with published properties, what type do I use for an array of strings? I've tried TStringList and TCollection but they give me errors like:

:: <~~ pascal-language-server 1: {'message': ' : Unsupported JSON type for object property: "jtArray"', 'code': -32603}


"initializationOptions" is a JSON array of strings, i.e. 'initializationOptions': ['-Fu/path/to']


  TInitializeParams = class(TPersistent)
  private
    fRootUri: string;
    fCapabilities: TClientCapabilities;
    fInitializationOptions: TCollection;
  published
    property rootUri: string read fRootUri write fRootUri;
    property capabilities: TClientCapabilities read fCapabilities write fCapabilities;
    property initializationOptions: TCollection read fInitializationOptions write fInitializationOptions;
  end;


Regards,
	Ryan Joseph



More information about the fpc-pascal mailing list