mirror of
https://github.com/voideditor/void
synced 2026-05-24 01:48:25 +00:00
+
This commit is contained in:
parent
715278ebbf
commit
8698908881
1 changed files with 2 additions and 1 deletions
|
|
@ -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])
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue