# lsp: Separate timed RPC log groups \(\#61452\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/3b90a9be7cb3c50ffc7149dac3fff52f6b32c446)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 3b90a9be7cb3c50ffc7149dac3fff52f6b32c446

Requested commit: 3b90a9be7cb3c50ffc7149dac3fff52f6b32c446

Commit: 3b90a9be7cb3c50ffc7149dac3fff52f6b32c446

Tree: 09c892326e9c3b493ffca085051bed0761f3d4a1

Author: Shuhei Kadowaki

Committer: GitHub

## Message

```
lsp: Separate timed RPC log groups (#61452)

RPC log grouping only tracked whether consecutive messages had the same
transport direction. This made an untimed request appear beneath the
duration header of an unrelated response when both were sent in the same
direction.

Before:

    // Send (took 53.0ms):
    {"jsonrpc":"2.0","id":"##CodeLensRefreshRequest#1226","result":null}
    {"jsonrpc":"2.0","id":53,"method":"textDocument/diagnostic"}

After:

    // Send (took 53.0ms):
    {"jsonrpc":"2.0","id":"##CodeLensRefreshRequest#1226","result":null}

    // Send:
    {"jsonrpc":"2.0","id":53,"method":"textDocument/diagnostic"}

Apply the same boundary handling to received messages while continuing
to group consecutive untimed messages.

---

Release Notes:

- N/A or Added/Fixed/Improved ...
```

## Parents

- [65308f4013187d8b97b02c4a615db299c5d05edd](https://git.cafe/gitcafe/zed/commit/65308f4013187d8b97b02c4a615db299c5d05edd?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/3b90a9be7cb3c50ffc7149dac3fff52f6b32c446?format=markdown)
