zed icon indicating copy to clipboard operation
zed copied to clipboard

Allow "Diagnostic" panel to only show current file

Open EvHaus opened this issue 2 years ago • 2 comments

Check for existing issues

  • [X] Completed

Describe the feature

At the moment, the Diagnostic panels shows you errors & warnings from all files you have open in your Zed tabs. For me, this is too much. I only want to see errors & warnings for the current file I have focused.

VSCode has a toggle for this called "Show Active File Only":

Screenshot 2023-05-18 at 1 08 28 PM

It would be great if Zed had something similar (and ideally a way to make that setting your default).

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

No response

EvHaus avatar May 18 '23 20:05 EvHaus

This is a neat idea @EvHaus. Just wanted to mention that we do have a couple commands to let you cycle through the errors in the current file

editor: go to diagnostic: f8 editor: go to prev diagnostic: shifft-f8

That being said, being able to filter down the diagnostics panel sounds nice too.

JosephTLyons avatar May 19 '23 19:05 JosephTLyons

In a similar vein, is there a way to collapse the diagnostics view to see a summary of issues by file?

Often, I want to work through each file to fix code issues in series and seeing all the code context is a bit overwhelming.

isaacd9 avatar Apr 29 '24 02:04 isaacd9