diff --git a/src/vs/workbench/contrib/void/browser/editCodeService.ts b/src/vs/workbench/contrib/void/browser/editCodeService.ts index 41e0e1ea..9b7580ab 100644 --- a/src/vs/workbench/contrib/void/browser/editCodeService.ts +++ b/src/vs/workbench/contrib/void/browser/editCodeService.ts @@ -1285,7 +1285,6 @@ class EditCodeService extends Disposable implements IEditCodeService { } - console.log('DONE WITH _STARTSTREAMING', diffZone) return { diffZone, onFinishEdit } } @@ -1773,7 +1772,7 @@ class EditCodeService extends Disposable implements IEditCodeService { onFinalMessage: async (params) => { const { fullText } = params - console.log('DONE!', fullText) + console.log('DONE - editCode!', fullText) // 1. wait 500ms and fix lint errors - call lint error workflow // (update react state to say "Fixing errors") diff --git a/src/vs/workbench/contrib/void/browser/react/src/markdown/ChatMarkdownRender.tsx b/src/vs/workbench/contrib/void/browser/react/src/markdown/ChatMarkdownRender.tsx index 8a6d97ac..2507f796 100644 --- a/src/vs/workbench/contrib/void/browser/react/src/markdown/ChatMarkdownRender.tsx +++ b/src/vs/workbench/contrib/void/browser/react/src/markdown/ChatMarkdownRender.tsx @@ -301,18 +301,13 @@ const RenderToken = ({ token, inPTag, codeURI, chatMessageLocation, tokenIdx, .. if (inPTag) return {contents} - - return

- {contents} -

+ return

{contents}

} if (t.type === "html") { - return ( -

- {t.raw} -

- ) + const contents = t.raw + if (inPTag) return {contents} + return

{contents}

} if (t.type === "text" || t.type === "escape") { diff --git a/src/vs/workbench/contrib/void/common/prompt/prompts.ts b/src/vs/workbench/contrib/void/common/prompt/prompts.ts index ffedfe24..d5042dc9 100644 --- a/src/vs/workbench/contrib/void/common/prompt/prompts.ts +++ b/src/vs/workbench/contrib/void/common/prompt/prompts.ts @@ -16,10 +16,10 @@ import { EndOfLinePreference } from '../../../../../editor/common/model.js'; export const tripleTick = ['```', '```'] export const editToolDesc_toolDescription = `\ -A high level description of the change you'd like to make in the file. \ -Your output should be of the form:\n${tripleTick[0]}\n// ... existing code ...\n{{change 1}}\n// ... existing code ...\n{{change2}}\n// ... existing code ...\n{{change 3}}\n...\n${tripleTick[1]}. \ -(wrap your output in triple backticks). Do NOT output the whole file here, and write as little as possible. If a change seems big, break it up into smaller edits. \ -Your description will be handed to a dumber, faster model that will quickly apply the change, so try to be brief, but also make sure to include enough information to accurately describe the change.` +Your description should be of the form:\n${tripleTick[0]}\n// ... existing code ...\n{{change 1}}\n// ... existing code ...\n{{change2}}\n// ... existing code ...\n{{change 3}}\n...\n${tripleTick[1]}. \ +Do NOT re-write the whole file, and instead use comments like // ... existing code ... . Write as little as possible. \ +Your description will be handed to a dumber, faster model that will quickly apply the change, so try to be brief, but also make sure to include enough information to accurately describe the change. \ +Include the triple ticks in your output.` diff --git a/src/vs/workbench/contrib/void/common/toolsServiceTypes.ts b/src/vs/workbench/contrib/void/common/toolsServiceTypes.ts index ce8b2b95..a4dbabbf 100644 --- a/src/vs/workbench/contrib/void/common/toolsServiceTypes.ts +++ b/src/vs/workbench/contrib/void/common/toolsServiceTypes.ts @@ -102,7 +102,7 @@ export const voidTools = { edit: { // APPLY TOOL name: 'edit', - description: `Edits the contents of a file at the given URI. Fails gracefully if the file does not exist.`, + description: `Edits the contents of a file, given the file's URI and a description. Fails gracefully if the file does not exist.`, params: { uri: { type: 'string', description: undefined }, changeDescription: { type: 'string', description: editToolDesc_toolDescription } // long description here