From 8698908881edc47dba2d55a3805c77c0402fcc92 Mon Sep 17 00:00:00 2001 From: Andrew Date: Wed, 11 Sep 2024 22:33:47 -0700 Subject: [PATCH] + --- extensions/linemage/src/sidebar/Sidebar.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extensions/linemage/src/sidebar/Sidebar.tsx b/extensions/linemage/src/sidebar/Sidebar.tsx index 35c448db..9b7f4a5c 100644 --- a/extensions/linemage/src/sidebar/Sidebar.tsx +++ b/extensions/linemage/src/sidebar/Sidebar.tsx @@ -12,7 +12,7 @@ import * as vscode from 'vscode' const filesStr = (fullFiles: File[]) => { return fullFiles.map(({ filepath, content }) => ` -${filepath} +${filepath.fsPath} \`\`\` ${content} \`\`\``).join('\n') @@ -203,6 +203,7 @@ const Sidebar = () => { // add message to chat history const content = userInstructionsStr(instructions, relevantFiles.files, selection) + // console.log('prompt:\n', content) const newHistoryElt: ChatMessage = { role: 'user', content, displayContent: instructions, selection, files } setChatHistory(chatMessageHistory => [...chatMessageHistory, newHistoryElt])