ResponseMessage.result can be an array type by yxrkt · Pull Request #1012 · microsoft/language-server-protocol (original) (raw)

That's fair, but array | object appears in other places in the spec (RequestMessage.params, ResponseError.data, NotificationMessage.params).

Personally, I think that they should be consistent and that explicitly including array is more clear.