Idris2Doc : Language.LSP.Message.Message

Language.LSP.Message.Message

(source)
Definitions of messages and associated payloads and responses.

(C) The Idris Community, 2021

Definitions

MessageParams : Methodfromtype->Type
  Maps the parameters associated to each type of method.

Totality: total
Visibility: public export
ResponseResult : MethodfromRequest->Type
  Maps the response associated to each type of method.

Totality: total
Visibility: public export
fromMaybeJSONParameters : (method : Methodfromtype) ->MaybeJSON->Maybe (MessageParamsmethod)
  Parse parameters
Since the params are sometimes optional we must parse Maybe JSON
TODO hacky replace with something better

Totality: total
Visibility: export
dataNotificationMessage : MethodfromNotification->Type
  Refer to https://microsoft.github.io/language-server-protocol/specification.html#notificationMessage

Totality: total
Visibility: public export
Constructor: 
MkNotificationMessage : (method : MethodfromNotification) ->MessageParamsmethod->NotificationMessagemethod

Hints:
FromJSON (from : MethodFrom** (method : MethodfromNotification**NotificationMessagemethod))
ToJSON (NotificationMessagemethod)
method : NotificationMessagem->MethodfromNotification
Totality: total
Visibility: export
params : NotificationMessagemethod->MessageParamsmethod
Totality: total
Visibility: export
dataRequestMessage : MethodfromRequest->Type
  Refer to https://microsoft.github.io/language-server-protocol/specification.html#requestMessage

Totality: total
Visibility: public export
Constructor: 
MkRequestMessage : OneOf [Int, String] -> (method : MethodfromRequest) ->MessageParamsmethod->RequestMessagemethod

Hints:
FromJSON (from : MethodFrom** (method : MethodfromRequest**RequestMessagemethod))
ToJSON (RequestMessagemethod)
id : RequestMessagem->OneOf [Int, String]
Totality: total
Visibility: export
method : RequestMessagem->MethodfromRequest
Totality: total
Visibility: export
params : RequestMessagemethod->MessageParamsmethod
Totality: total
Visibility: export
Message : (type : MethodType) ->Methodfromtype->Type
  Maps the message payload to each type of method.

Totality: total
Visibility: public export
dataErrorCodes : Type
Totality: total
Visibility: public export
Constructors:
ParseError : ErrorCodes
InvalidRequest : ErrorCodes
MethodNotFound : ErrorCodes
InvalidParams : ErrorCodes
InternalError : ErrorCodes
ServerNotInitialized : ErrorCodes
UnknownErrorCode : ErrorCodes
ContentModified : ErrorCodes
RequestCancelled : ErrorCodes
JSONRPCReserved : Int->ErrorCodes
LSPReserved : Int->ErrorCodes
Custom : Int->ErrorCodes

Hints:
FromJSONErrorCodes
ToJSONErrorCodes
recordResponseError : Type
  Refer to https://microsoft.github.io/language-server-protocol/specification.html#responseMessage

Totality: total
Visibility: public export
Constructor: 
MkResponseError : ErrorCodes->String->JSON->ResponseError

Projections:
.code : ResponseError->ErrorCodes
.data_ : ResponseError->JSON
.message : ResponseError->String

Hints:
FromJSONResponseError
ToJSONResponseError
.code : ResponseError->ErrorCodes
Totality: total
Visibility: public export
code : ResponseError->ErrorCodes
Totality: total
Visibility: public export
.message : ResponseError->String
Totality: total
Visibility: public export
message : ResponseError->String
Totality: total
Visibility: public export
.data_ : ResponseError->JSON
Totality: total
Visibility: public export
data_ : ResponseError->JSON
Totality: total
Visibility: public export
dataResponseMessage : Methodfromtype->Type
  Refer to https://microsoft.github.io/language-server-protocol/specification.html#responseMessage

Totality: total
Visibility: public export
Constructors:
Success : OneOf [Int, String, Null] ->ResponseResultmethod->ResponseMessagemethod
Failure : OneOf [Int, String, Null] ->ResponseError->ResponseMessagemethod

Hints:
FromJSON (ResponseResultmethod) =>FromJSON (ResponseMessagemethod)
ToJSON (ResponseMessagemethod)
id : ResponseMessagemethod->OneOf [Int, String, Null]
Totality: total
Visibility: export
getResponseId : RequestMessagemethod->OneOf [Int, String, Null]
Totality: total
Visibility: export