Skip to content

Conversation

@majiayu000
Copy link
Contributor

Summary

The diagnostics panel was ignoring the user's toolbar.breadcrumbs setting and always showing breadcrumbs. This makes both BufferDiagnosticsEditor and ProjectDiagnosticsEditor check the EditorSettings to determine whether to display breadcrumbs.

Changes

  • buffer_diagnostics.rs: Updated breadcrumb_location to check EditorSettings::get_global(cx).toolbar.breadcrumbs
  • diagnostics.rs: Updated breadcrumb_location to check EditorSettings::get_global(cx).toolbar.breadcrumbs

This follows the same pattern used by the regular Editor in items.rs.

Test plan

  1. Set toolbar.breadcrumbs to false in settings.json
  2. Open a file with diagnostics
  3. Run diagnostics: deploy current file
  4. Verify that breadcrumbs are hidden in the diagnostics panel

Fixes #43020

The diagnostics panel was ignoring the user's toolbar.breadcrumbs
setting and always showing breadcrumbs. This makes both
BufferDiagnosticsEditor and ProjectDiagnosticsEditor check the
EditorSettings to determine whether to display breadcrumbs.

Fixes zed-industries#43020
@cla-bot
Copy link

cla-bot bot commented Dec 16, 2025

We require contributors to sign our Contributor License Agreement, and we don't have @majiayu000 on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

@MrSubidubi MrSubidubi changed the title fix: respect toolbar breadcrumbs setting in diagnostics panel Dec 16, 2025
@Veykril Veykril self-assigned this Dec 16, 2025
Copy link
Member

@Veykril Veykril left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@Veykril Veykril changed the title Respect toolbar breadcrumbs setting in diagnostics panel Dec 16, 2025
@Veykril
Copy link
Member

Veykril commented Dec 16, 2025

needs the CLA

@majiayu000
Copy link
Contributor Author

Hi! I have completed the cla !

@majiayu000
Copy link
Contributor Author

@cla-bot check

@cla-bot
Copy link

cla-bot bot commented Dec 16, 2025

We require contributors to sign our Contributor License Agreement, and we don't have @majiayu000 on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

@cla-bot
Copy link

cla-bot bot commented Dec 16, 2025

The cla-bot has been summoned, and re-checked this pull request!

@majiayu000
Copy link
Contributor Author

@cla-bot check

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Dec 16, 2025
@cla-bot
Copy link

cla-bot bot commented Dec 16, 2025

The cla-bot has been summoned, and re-checked this pull request!

@Veykril
Copy link
Member

Veykril commented Dec 16, 2025

Thanks!

@Veykril Veykril enabled auto-merge (squash) December 16, 2025 12:56
@zed-industries-bot
Copy link

Warnings
⚠️

This PR is missing release notes.

Please add a "Release Notes" section that describes the change:

Release Notes:

- Added/Fixed/Improved ...

If your change is not user-facing, you can use "N/A" for the entry:

Release Notes:

- N/A

Generated by 🚫 dangerJS against b81d505

2 similar comments
@zed-industries-bot
Copy link

Warnings
⚠️

This PR is missing release notes.

Please add a "Release Notes" section that describes the change:

Release Notes:

- Added/Fixed/Improved ...

If your change is not user-facing, you can use "N/A" for the entry:

Release Notes:

- N/A

Generated by 🚫 dangerJS against b81d505

@zed-industries-bot
Copy link

Warnings
⚠️

This PR is missing release notes.

Please add a "Release Notes" section that describes the change:

Release Notes:

- Added/Fixed/Improved ...

If your change is not user-facing, you can use "N/A" for the entry:

Release Notes:

- N/A

Generated by 🚫 dangerJS against b81d505

@Veykril Veykril merged commit 37bd27b into zed-industries:main Dec 16, 2025
26 checks passed
@majiayu000 majiayu000 deleted the fix/issue-43020-diagnostics-toolbar-settings branch December 16, 2025 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

3 participants