-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
diagnostics: Respect toolbar breadcrumbs setting in diagnostics panel #44974
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
diagnostics: Respect toolbar breadcrumbs setting in diagnostics panel #44974
Conversation
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
|
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'. |
Veykril
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
|
needs the CLA |
|
Hi! I have completed the cla ! |
|
@cla-bot check |
|
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'. |
|
The cla-bot has been summoned, and re-checked this pull request! |
|
@cla-bot check |
|
The cla-bot has been summoned, and re-checked this pull request! |
|
Thanks! |
Summary
The diagnostics panel was ignoring the user's
toolbar.breadcrumbssetting and always showing breadcrumbs. This makes bothBufferDiagnosticsEditorandProjectDiagnosticsEditorcheck theEditorSettingsto determine whether to display breadcrumbs.Changes
buffer_diagnostics.rs: Updatedbreadcrumb_locationto checkEditorSettings::get_global(cx).toolbar.breadcrumbsdiagnostics.rs: Updatedbreadcrumb_locationto checkEditorSettings::get_global(cx).toolbar.breadcrumbsThis follows the same pattern used by the regular
Editorinitems.rs.Test plan
toolbar.breadcrumbstofalsein settings.jsondiagnostics: deploy current fileFixes #43020