File tree Expand file tree Collapse file tree
packages/vscode/src/views/panel/backend/message-handlers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -184,7 +184,7 @@ export const handle_copy_prompt = async (params: {
184184 if ( edit_format_instructions ) {
185185 const system_instructions = `<system>\n${ edit_format_instructions } \n</system>`
186186 pre_context_instructions += `\n${ system_instructions } `
187- post_context_instructions + = `\n${ system_instructions } `
187+ post_context_instructions = `${ system_instructions } \n${ post_context_instructions } `
188188 }
189189 }
190190
Original file line number Diff line number Diff line change @@ -383,7 +383,7 @@ const perform_context_editing = async (params: {
383383 if ( edit_format_instructions ) {
384384 const system_instructions = `<system>\n${ edit_format_instructions } \n</system>`
385385 loop_pre_context_instructions += `\n${ system_instructions } `
386- loop_post_context_instructions + = `\n${ system_instructions } `
386+ loop_post_context_instructions = `${ system_instructions } \n${ loop_post_context_instructions } `
387387 }
388388
389389 // Use instructions placement setting to determine message structure
Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ export const handle_preview_preset = async (
171171 if ( edit_format_instructions ) {
172172 const system_instructions = `<system>\n${ edit_format_instructions } \n</system>`
173173 pre_context_instructions += `\n${ system_instructions } `
174- post_context_instructions + = `\n${ system_instructions } `
174+ post_context_instructions = `${ system_instructions } \n${ post_context_instructions } `
175175 }
176176 }
177177
Original file line number Diff line number Diff line change @@ -258,7 +258,7 @@ export const handle_send_prompt = async (params: {
258258 if ( edit_format_instructions ) {
259259 const system_instructions = `<system>\n${ edit_format_instructions } \n</system>`
260260 pre_context_instructions += `\n${ system_instructions } `
261- post_context_instructions + = `\n${ system_instructions } `
261+ post_context_instructions = `${ system_instructions } \n${ post_context_instructions } `
262262 }
263263 }
264264
You can’t perform that action at this time.
0 commit comments