mirror of
https://github.com/microsoft/language-server-protocol.git
synced 2025-12-23 08:48:16 +00:00
Change message params types to match JSON-RPC spec
Since the interface is supposed to describe message format to match [JSON-RPC spec](http://www.jsonrpc.org/specification), the params type must be specified as either `Array` or `Object`. From spec: > 4.2 Parameter Structures > > If present, parameters for the rpc call MUST be provided as a Structured value. Either by-position through an Array or by-name through an Object.
This commit is contained in:
parent
b83effa317
commit
b06d2c4c0d
1 changed files with 2 additions and 2 deletions
|
|
@ -89,7 +89,7 @@ interface RequestMessage extends Message {
|
|||
/**
|
||||
* The method's params.
|
||||
*/
|
||||
params?: any
|
||||
params?: Array<T> | object;
|
||||
}
|
||||
```
|
||||
|
||||
|
|
@ -164,7 +164,7 @@ interface NotificationMessage extends Message {
|
|||
/**
|
||||
* The notification's params.
|
||||
*/
|
||||
params?: any
|
||||
params?: Array<T> | object;
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue