Skip to content

Commit 1f06e24

Browse files
committed
Refactor process_chat_response to accept an object parameter and use pre-parsed clipboard items
1 parent 79d3040 commit 1f06e24

2 files changed

Lines changed: 98 additions & 83 deletions

File tree

‎apps/editor/src/commands/apply-chat-response-command/apply-chat-response-command.ts‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -176,13 +176,14 @@ export const apply_chat_response_command = (params: {
176176
})
177177
}
178178

179-
const preview_data = await process_chat_response(
179+
const preview_data = await process_chat_response({
180180
args,
181181
chat_response,
182-
params.context,
183-
params.panel_provider,
184-
params.workspace_provider
185-
)
182+
clipboard_items,
183+
context: params.context,
184+
panel_provider: params.panel_provider,
185+
workspace_provider: params.workspace_provider
186+
})
186187

187188
params.panel_provider.send_message({
188189
command: 'HIDE_PROGRESS'

0 commit comments

Comments
 (0)