zed icon indicating copy to clipboard operation
zed copied to clipboard

When closing buffer from single-file workspace clangd keeps running

Open hferreiro opened this issue 10 months ago • 1 comments

Summary

clangd keeps running even if all buffers have been closed.

Steps to trigger the problem:

  1. Open a C++ file in an empty Zed window. clangd starts indexing
  2. Close the buffer. clangd keeps running

Expected Behavior:

clangd should stop immediately after the buffer is closed. I noticed that if I open another project (while keeping the current window open), clangd is stopped.

Zed Version and System Specs

Zed: v0.180.2 (Zed) OS: macOS 15.3.2 Memory: 32 GiB Architecture: aarch64

hferreiro avatar Apr 04 '25 10:04 hferreiro

Seems that this may be a recurring problem. Is there anything in the zed log (zed: log) before or after closing Zed that would seem to be related to clangd?

probably-neb avatar May 27 '25 19:05 probably-neb

It looks like this has been fixed recently.

hferreiro avatar May 28 '25 12:05 hferreiro