Skip to content

Unstructured response errors from doInitialize #586

Closed
@samcowger

Description

@samcowger

As of lsp-2.6.0.0/lsp-types-2.2.0.0, the doInitialize field of ServerDefinition is a function that evaluates to an IO (Either ResponseError a). If I'm not mistaken, the ResponseError component of that type could/should be a TResponseError 'Method_Initialize.

This would only change the type of the _xdata portion of the error, refining it from its current type of Aeson.Value down to InitializeError, which would be in line with the spec.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions