mirror of
https://github.com/microsoft/language-server-protocol.git
synced 2025-12-23 08:48:16 +00:00
Mention legal JSON-RPC message params types
This commit is contained in:
parent
8cb50fb735
commit
aebb91ec8b
1 changed files with 2 additions and 0 deletions
|
|
@ -195,6 +195,8 @@ A request that got canceled still needs to return from the server and send a res
|
|||
|
||||
The language server protocol defines a set of JSON-RPC request, response and notification messages which are exchanged using the above base protocol. This section starts describing the basic JSON structures used in the protocol. The document uses TypeScript interfaces to describe these. Based on the basic JSON structures, the actual requests with their responses and the notifications are described.
|
||||
|
||||
In general, the language server protocol supports JSON-RPC messages, however the base protocol defined here uses a convention such that the parameters passed to request/notification messages should be of `object` type (if passed at all). However, this does not disallow using `Array` parameter types in custom messages.
|
||||
|
||||
The protocol currently assumes that one server serves one tool. There is currently no support in the protocol to share one server between different tools. Such a sharing would require additional protocol to either lock a document to support concurrent editing.
|
||||
|
||||
### Basic JSON Structures
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue