From aebb91ec8bd69839bccd2316f3e39aa9a5192650 Mon Sep 17 00:00:00 2001 From: Igor Matuszewski Date: Thu, 22 Feb 2018 23:16:56 +0100 Subject: [PATCH] Mention legal JSON-RPC message params types --- specification.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/specification.md b/specification.md index 67d88a4..77f76ca 100644 --- a/specification.md +++ b/specification.md @@ -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