zed icon indicating copy to clipboard operation
zed copied to clipboard

C Macro definition tooltips are nigh unreadable

Open jansol opened this issue 1 year ago • 2 comments

Check for existing issues

  • [X] Completed

Describe the bug / provide steps to reproduce it

The definition tooltip for C macros look pretty awful, possibly related to line wrapping: image The actual definition (auto-formatted with clang-format to put the \ just before 80 cols) is much better:

#define COPY(src, size)                                                       \
  do                                                                          \
    {                                                                         \
      if (buf && (size))                                                      \
        {                                                                     \
          memcpy (buf + copied_size, (src), (size));                          \
        }                                                                     \
      copied_size += (size);                                                  \
    }                                                                         \
  while (0)

If the problem is indeed line wrapping then I'd rather have zed increasing the size of the tooltip if display space allows for it.

Zed Version and System Specs

Zed: v0.167.0 (Zed Dev 5dbadab1acc2b41d385711647aa12fd4af5b09db) OS: Linux Wayland ubuntu 24.04 Memory: 31.3 GiB Architecture: x86_64 GPU: Radeon Vega Frontier Edition (RADV VEGA10) || radv || Mesa 24.0.9-0ubuntu0.3

If applicable, add screenshots or screencasts of the incorrect state / behavior

No response

If applicable, attach your Zed.log file to this issue.

No response

jansol avatar Dec 19 '24 18:12 jansol

Hi there! 👋 We're working to clean up our issue tracker by closing older issues that might not be relevant anymore. If you are able to reproduce this issue in the latest version of Zed, please let us know by commenting on this issue, and we will keep it open. If you can't reproduce it, feel free to close the issue yourself. Otherwise, we'll close it in 7 days. Thanks for your help!

github-actions[bot] avatar May 07 '25 07:05 github-actions[bot]

Nothing has changed regarding this.

jansol avatar May 08 '25 11:05 jansol

Hi there! 👋 We're working to clean up our issue tracker by closing older issues that might not be relevant anymore. If you are able to reproduce this issue in the latest version of Zed, please let us know by commenting on this issue, and we will keep it open. If you can't reproduce it, feel free to close the issue yourself. Otherwise, we'll close it in 7 days. Thanks for your help!

github-actions[bot] avatar Sep 10 '25 07:09 github-actions[bot]

Still bad as ever

jansol avatar Sep 11 '25 01:09 jansol

Same issue, plus it does unnecessary formatting even of one-liner macros.

Image

avanspector avatar Oct 06 '25 08:10 avanspector