A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/microsoft/vscode-debugadapter-node/issues/58 below:

Why is JSON RPC not used? · Issue #58 · microsoft/vscode-debugadapter-node · GitHub

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.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4