Stop showing diagnostics in the diff-related editors (#33285)

<img width="1728" alt="image"
src="https://github.com/user-attachments/assets/a63925a7-8e13-4d48-bd31-33f434209ea6"
/>

Diagnostics UI elements (underlines, popovers, hovers) are quite noisy
by themselves and get even more so with the git background colors.

Release Notes:

- Stopped showing diagnostics in the diff-related editors
This commit is contained in:
Kirill Bulatov
2025-06-24 01:35:08 +00:00
committed by GitHub
parent 2283ec5de2
commit 21f985a018
3 changed files with 28 additions and 7 deletions
+1 -1
View File
@@ -94,7 +94,7 @@ impl DiffView {
let mut editor =
Editor::for_multibuffer(multibuffer.clone(), Some(project.clone()), window, cx);
editor.start_temporary_diff_override();
editor.disable_inline_diagnostics();
editor.disable_diagnostics(cx);
editor.set_expand_all_diff_hunks(cx);
editor.set_render_diff_hunk_controls(
Arc::new(|_, _, _, _, _, _, _, _| gpui::Empty.into_any_element()),