@@ -63,6 +63,9 @@ export const use_settings = (vscode: any) => {
6363 clear_checks_in_workspace_behavior ,
6464 set_clear_checks_in_workspace_behavior
6565 ] = useState < 'ignore-open-editors' | 'uncheck-all' | undefined > ( undefined )
66+ const [ copy_paths_format , set_copy_paths_format ] = useState <
67+ 'list' | 'tree' | undefined
68+ > ( undefined )
6669 const [ auto_run_intelligent_update , set_auto_run_intelligent_update ] =
6770 useState < boolean | undefined > ( undefined )
6871
@@ -85,6 +88,7 @@ export const use_settings = (vscode: any) => {
8588 post_message ( vscode , { command : 'GET_SEND_WITH_SHIFT_ENTER' } )
8689 post_message ( vscode , { command : 'GET_CHECK_NEW_FILES' } )
8790 post_message ( vscode , { command : 'GET_REUSE_LAST_TAB' } )
91+ post_message ( vscode , { command : 'GET_COPY_PATHS_FORMAT' } )
8892 post_message ( vscode , { command : 'GET_CLEAR_CHECKS_IN_WORKSPACE_BEHAVIOR' } )
8993 post_message ( vscode , { command : 'GET_AUTO_RUN_INTELLIGENT_UPDATE' } )
9094 } , [ vscode ] )
@@ -129,6 +133,8 @@ export const use_settings = (vscode: any) => {
129133 set_reuse_last_tab ( message . enabled )
130134 } else if ( message . command == 'CLEAR_CHECKS_IN_WORKSPACE_BEHAVIOR' ) {
131135 set_clear_checks_in_workspace_behavior ( message . value )
136+ } else if ( message . command == 'COPY_PATHS_FORMAT' ) {
137+ set_copy_paths_format ( message . value )
132138 } else if ( message . command == 'AUTO_RUN_INTELLIGENT_UPDATE' ) {
133139 set_auto_run_intelligent_update ( message . enabled )
134140 }
@@ -354,6 +360,14 @@ export const use_settings = (vscode: any) => {
354360 } )
355361 }
356362
363+ const handle_copy_paths_format_change = ( value : 'list' | 'tree' ) => {
364+ set_copy_paths_format ( value )
365+ post_message ( vscode , {
366+ command : 'UPDATE_COPY_PATHS_FORMAT' ,
367+ value
368+ } )
369+ }
370+
357371 const handle_auto_run_intelligent_update_change = ( enabled : boolean ) => {
358372 set_auto_run_intelligent_update ( enabled )
359373 post_message ( vscode , {
@@ -398,6 +412,7 @@ export const use_settings = (vscode: any) => {
398412 check_new_files,
399413 reuse_last_tab,
400414 clear_checks_in_workspace_behavior,
415+ copy_paths_format,
401416 auto_run_intelligent_update,
402417 handle_reorder_providers,
403418 handle_add_provider,
@@ -427,6 +442,7 @@ export const use_settings = (vscode: any) => {
427442 handle_check_new_files_change,
428443 handle_reuse_last_tab_change,
429444 handle_clear_checks_in_workspace_behavior_change,
445+ handle_copy_paths_format_change,
430446 handle_auto_run_intelligent_update_change,
431447 handle_open_keybindings,
432448 handle_open_external_url
0 commit comments