C Macro definition tooltips are nigh unreadable
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:
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
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!
Nothing has changed regarding this.
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!
Still bad as ever
Same issue, plus it does unnecessary formatting even of one-liner macros.