mirror of
https://github.com/zed-industries/zed.git
synced 2026-11-22 00:20:23 +01:00
4668a4bf09
LSP log streams can be consumed by split views and downstream clients. Treating enablement as a single value lets one consumer disable a stream that another consumer is still using. Track the streams enabled by each view and reference-count each exact server and log kind. Keep in-process view ownership separate from downstream requests, preserve RPC capture while either has an active consumer, and notify remote hosts only on the first enable and final disable. Represent log kinds independently so split views can consume logs, traces, and RPC messages without overwriting one another. --- This PR is a stacked follow-up to #61221. It is split out because project isolation is independently mergeable, while reference-counting changes the ownership and lifecycle semantics of LSP log streams and benefits from separate review. --- Release Notes: - Fixed closing one LSP Logs view stopping streams used by another view or downstream client --------- Co-authored-by: zed-zippy[bot] <234243425+zed-zippy[bot]@users.noreply.github.com>