Skip to content

Get rid of 'CustomMethod' #592

@michaelpj

Description

@michaelpj

CustomMethod is a bit of a hack to squeeze in an open set of additional methods into our otherwise closed set of methods. It adds a lot of difficulty for this reason: it's not typed in the same way, it can be used as anything, and it generally prevents us from doing anything that relies on knowing all the methods.

I think it would be better to rather also expose an untyped interface to the JSONRPC server. That is, be able to say something like:

addRequestHandler SMethod_TextDocumentCompletion $ \typedParams -> ...
Untyped.addRequestHandler "myMethod" $ \untypedParams -> ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions