From c05621468446ff135ab85bc19e62958b4c4c91f7 Mon Sep 17 00:00:00 2001 From: Mathew Pareles Date: Sat, 11 Jan 2025 18:12:21 -0800 Subject: [PATCH] prompt adjust --- src/vs/workbench/contrib/void/browser/prompt/prompts.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/vs/workbench/contrib/void/browser/prompt/prompts.ts b/src/vs/workbench/contrib/void/browser/prompt/prompts.ts index 15d72af1..132acaea 100644 --- a/src/vs/workbench/contrib/void/browser/prompt/prompts.ts +++ b/src/vs/workbench/contrib/void/browser/prompt/prompts.ts @@ -367,7 +367,7 @@ The user is selecting this code as their SELECTION: The user wants to apply the following INSTRUCTIONS to the SELECTION: ${userMessage} -Please edit the SELECTION following the user's INSTRUCTIONS, and return the new SELECTION. +Please edit the SELECTION following the user's INSTRUCTIONS, and return only a single block. Note that the SELECTION has code that comes before it. This code is indicated with <${preTag}>...before<${preTag}/>. Note also that the SELECTION has code that comes after it. This code is indicated with <${sufTag}>...after<${sufTag}/>. @@ -378,9 +378,11 @@ Instructions: 3. Make sure all brackets in the new selection are balanced the same as in the original selection. 4. Be careful not to duplicate or remove variables, comments, or other syntax by mistake. -Complete the following: +Given code: <${preTag}>${prefix} -<${sufTag}>${suffix}` +<${sufTag}>${suffix} + +Return one block of code of the form \`\`\`<${midTag}>...new_selection<${midTag}/>\`\`\`:` } };