88 FileItem ,
99 DiffItem ,
1010 RelevantFilesItem ,
11- ClipboardItem
12- } from './utils/clipboard -parser'
11+ ResponseItem
12+ } from './utils/response -parser'
1313import { create_safe_path } from '@/utils/path-sanitizer'
1414import { dictionary } from '@shared/constants/dictionary'
1515import { Logger } from '@shared/utils/logger'
@@ -61,7 +61,7 @@ export type ApplyResponseCommandArgs = {
6161export const process_response = async ( params : {
6262 args : ApplyResponseCommandArgs | undefined
6363 response : string
64- clipboard_items : ClipboardItem [ ]
64+ response_items : ResponseItem [ ]
6565 context : vscode . ExtensionContext
6666 panel_provider : PanelProvider
6767 workspace_provider : WorkspaceProvider
@@ -118,7 +118,7 @@ export const process_response = async (params: {
118118 const is_single_root_folder_workspace =
119119 vscode . workspace . workspaceFolders ?. length == 1
120120
121- if ( params . clipboard_items . some ( ( item ) => item . type == 'relevant-files' ) ) {
121+ if ( params . response_items . some ( ( item ) => item . type == 'relevant-files' ) ) {
122122 const current_checked_files =
123123 params . workspace_provider . get_export_state ( ) . regular . checked_files
124124
@@ -127,7 +127,7 @@ export const process_response = async (params: {
127127 const files_for_preview : RelevantFileInPreview [ ] = [ ]
128128 const items_for_preview : ItemInPreview [ ] = [ ]
129129
130- for ( const item of params . clipboard_items ) {
130+ for ( const item of params . response_items ) {
131131 if ( item . type == 'relevant-files' ) {
132132 const relevant_files_item = item as RelevantFilesItem
133133 const all_paths_to_process = new Set < string > (
@@ -293,8 +293,8 @@ export const process_response = async (params: {
293293 }
294294
295295 return null
296- } else if ( params . clipboard_items . some ( ( item ) => item . type == 'diff' ) ) {
297- const patches = params . clipboard_items . filter (
296+ } else if ( params . response_items . some ( ( item ) => item . type == 'diff' ) ) {
297+ const patches = params . response_items . filter (
298298 ( item ) : item is DiffItem => item . type == 'diff'
299299 )
300300 const rename_map = new Map <
@@ -452,8 +452,8 @@ export const process_response = async (params: {
452452
453453 return null
454454 } else {
455- if ( params . clipboard_items . some ( ( item ) => item . type == 'code-at-cursor' ) ) {
456- const completion = params . clipboard_items . find (
455+ if ( params . response_items . some ( ( item ) => item . type == 'code-at-cursor' ) ) {
456+ const completion = params . response_items . find (
457457 ( item ) => item . type == 'code-at-cursor'
458458 ) !
459459 const workspace_map = new Map < string , string > ( )
@@ -519,7 +519,7 @@ export const process_response = async (params: {
519519 }
520520 }
521521
522- params . clipboard_items = [
522+ params . response_items = [
523523 {
524524 type : 'file' ,
525525 file_path : completion . file_path ,
@@ -529,7 +529,7 @@ export const process_response = async (params: {
529529 ]
530530 }
531531
532- const files = params . clipboard_items . filter (
532+ const files = params . response_items . filter (
533533 ( item ) : item is FileItem => item . type == 'file'
534534 )
535535
0 commit comments