Skip to content

Why is JSON RPC not used? #58

@felixfbecker

Description

@felixfbecker

Just wondering why the language server protocol uses JSON RPC, but the debug protocol uses structures like these

/** Base class of requests, responses, and events. */
    interface ProtocolMessage {
        /** Sequence number */
        seq: number;
        /** One of "request", "response", or "event" */
        type: string;
    }
    /** Client-initiated request */
    interface Request extends ProtocolMessage {
        /** The command to execute */
        command: string;
        /** Object containing arguments for the command */
        arguments?: any;
    }

that is basically JSON RPC, just with different property names (seq -> id, arguments -> params, command -> method). It would make implementations of debug adapters in other languages much easier because many languages have some kind of JSON RPC implementation.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions