Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
assistant: Remove automatic diagnostic attachment to tab and file commands (#20297)
Danilo Leal71b3633c1b5b
diff --git a/crates/assistant/src/slash_command/file_command.rs b/crates/assistant/src/slash_command/file_command.rsindex 39647540299..9e344aa510d 100644--- a/crates/assistant/src/slash_command/file_command.rs+++ b/crates/assistant/src/slash_command/file_command.rs@@ -21,8 +21,6 @@ use ui::prelude::*;use util::ResultExt;use workspace::Workspace;-use crate::slash_command::diagnostics_command::collect_buffer_diagnostics;-pub(crate) struct FileSlashCommand;impl FileSlashCommand {@@ -543,8 +541,6 @@ pub fn append_buffer_to_output(output.text.push('\n');let section_ix = output.sections.len();- collect_buffer_diagnostics(output, buffer, false);-output.sections.insert(section_ix,build_entry_output_section(prev_len..output.text.len(), path, false, None),