Skip to content

Commit 5fff7eb

Browse files
committed
Change the placeholder replacement format from Markdown code blocks to XML fragment tags
1 parent 31662e6 commit 5fff7eb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/vscode/src/utils/replace-selection-placeholder/replace-selection-placeholder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const replace_selection_placeholder = (instruction: string): string => {
1818
const document = active_editor.document
1919
const current_file_path = vscode.workspace.asRelativePath(document.uri)
2020

21-
const replacement_text = `\n\`\`\` path=${current_file_path}\n${selected_text}\n\`\`\`\n`
21+
const replacement_text = `\n<fragment path="${current_file_path}">\n<![CDATA[\n${selected_text}\n]]>\n</fragment>\n`
2222

2323
return instruction.replace(/\s*@Selection\s*/g, replacement_text)
2424
}

0 commit comments

Comments
 (0)