Skip to content

Project diagnostics flickers on unsaved multibuffer changes #27275

@rpadaki

Description

@rpadaki

Summary

When fixing the last error in the project diagnostics multibuffer, the error disappears before I'm able to save it, leading to flickering.

Steps to trigger the problem:

  1. Open a project with no diagnostic errors/warnings (I used a Go project)
  2. Introduce a code change that creates a single error and save
  3. Close all tabs except for the Project Diagnostics
  4. In the project diagnostics multibuffer, fix the error (but don't save)

Actual Behavior:

At least for my Go project, the unsaved change to fix the error clears the error from the Project Diagnostics tab. But this also clears the multibuffer, so I no longer have a way to view or save these unsaved changes!

If I close the tab, my unsaved changes are wiped without any confirmation dialog.

If I leave the tab open, I start seeing flickering where the error diagnostic shows back up, appears in the multibuffer, is fixed by the re-applied untracked changes, and disappears.

Expected Behavior:

I'm honestly not sure what a good UX would be here, but I would certainly hope to be able to save my changes.

Zed Version and System Specs

Zed: v0.178.5 (Zed)
OS: macOS 15.0.0
Memory: 16 GiB
Architecture: aarch64

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:diagnosticsFeedback for diagnostics, error messages, logs, etcarea:multi-bufferFeedback for multi buffersstaleLabel used by `stale` action

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions