textDocument/signatureHelp response is invalid
veksha opened this issue · comments
I send textDocument/signatureHelp
and get an invalid response from server: {'signatures': null, 'activeSignature': null, 'activeParameter': null}
according to LSP specs If no signatures are available the signature help request should return "null".
null
values are not valid for members of SignatureHelp interface.
export interface SignatureHelp {
/**
* One or more signatures. If no signatures are available the signature help
* request should return `null`.
*/
signatures: SignatureInformation[];
activeSignature?: uinteger;
activeParameter?: uinteger;
Doesn't seem to make much difference in VsCode, but I can change this. Thanks.
It seems the STDIO has a problem with blocking reads. I'll look into it if it can be resolved...
I did look into it a bit more. I work on windows and there reading from STDIN and not blocking on it seems just... impossible...
I strongly suggest you use TCP.
okay thank you.