Skip to content

Request batching #988

Open
Open
@dbaeumer

Description

@dbaeumer

The protocol defines quite some message which are executed on a text document (e.g. folding ranges, document links, colors, ...). Clients usually send these request after a timeout ask the server to recompute the responses after the user typed. Since these request require to reconcile the AST and even may be resolving symbols it would be useful for a server to know that a client will ask for on of these requests. To support such an optimization we should look into batch n requests. Two ideas:

  • have special LSP level notifications for this. This is comparable to begin/end transaction in DBs.
  • use JSON RPC Batching (https://www.jsonrpc.org/specification#batch). Downside is that most RPC libraries have no support for this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions