Skip to content

diagnostic messages clipped in multibuffer #16096

@jvatic

Description

@jvatic

Check for existing issues

  • Completed

Describe the bug / provide steps to reproduce it

When opening Project Diagnostics, messages are displayed on a single line and clipped when they extent beyond that (as is frequently the case with rust warnings and errors), and it's not obvious how to see the full thing without making use of the "copy diagnostic" button and pasting it somewhere.

Environment

Zed: v0.148.0 (Zed Preview)
OS: macOS 14.5.0
Memory: 18 GiB
Architecture: aarch64

If applicable, add mockups / screenshots to help explain present your vision of the feature

Take a clippy warning for example, it shows up fine when hovering over the matched span when viewing the file containing it normally, but when viewed in the multibuffer the warning is clipped/truncated:

Screenshot of Zed inlay diagnostic message Screenshot of Zed diagnostic message in multibuffer

which can be contrasted against VSCode, which shows the full summary and provides a link to view the full message:

Screenshot of VSCode diagnostic message

It'd be nice to have the full summary shown along with the first help line, and an option to expand to see the full message.

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

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:diagnosticsFeedback for diagnostics, error messages, logs, etcarea:editorFeedback for code editing, formatting, editor iterations, etcarea:popoversFeedback for tooltips, syntax hints, info popups, toasts, etcbugDEPRECATED label: use issue type 'Bug' insteadstaleLabel used by `stale` action

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions