agent: Do not render diagnostics in diff (#58052)

Release Notes:

- agent: Fixed an issue where diagnostics would show up in agent panel
diffs
This commit is contained in:
Bennet Bo Fenner 2026-05-29 14:18:57 +02:00 committed by GitHub
parent 3eab273b85
commit f49be143f3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -10,7 +10,7 @@ use gpui::{
ScrollHandle, TextStyleRefinement, WeakEntity, Window,
};
use language::language_settings::SoftWrap;
use project::{AgentId, Project};
use project::{AgentId, Project, project_settings::DiagnosticSeverity};
use prompt_store::PromptStore;
use rope::Point;
use settings::Settings as _;
@ -444,7 +444,8 @@ fn create_editor_diff(
cx,
);
editor.set_show_gutter(false, cx);
editor.disable_inline_diagnostics();
editor.disable_diagnostics(cx);
editor.set_max_diagnostics_severity(DiagnosticSeverity::Off, cx);
editor.disable_expand_excerpt_buttons(cx);
editor.set_show_vertical_scrollbar(false, cx);
editor.set_minimap_visibility(MinimapVisibility::Disabled, window, cx);