Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Only include diagnostic instruction once (#29975)
Max Nordlund49ba4ed49cb1
diff --git a/assets/prompts/content_prompt.hbs b/assets/prompts/content_prompt.hbsindex c029f84b24c..e601e6dc633 100644--- a/assets/prompts/content_prompt.hbs+++ b/assets/prompts/content_prompt.hbs@@ -49,10 +49,9 @@ And here's the section to rewrite based on that prompt again for reference:</rewrite_this>{{#if diagnostic_errors}}-{{#each diagnostic_errors}}-Below are the diagnostic errors visible to the user. If the user requests problems to be fixed, use this information, but do not try to fix these errors if the user hasn't asked you to.+{{#each diagnostic_errors}}<diagnostic_error><line_number>{{line_number}}</line_number><error_message>{{error_message}}</error_message>