@@ -23,8 +23,8 @@ export const use_settings = (vscode: any) => {
2323 const [ commit_message_instructions , set_commit_message_instructions ] =
2424 useState < string | undefined > ( undefined )
2525 const [
26- include_prompts_in_commit_messages ,
27- set_include_prompts_in_commit_messages
26+ attach_all_prompts_in_commit_messages_by_default ,
27+ set_attach_all_prompts_in_commit_messages_by_default
2828 ] = useState < boolean | undefined > ( undefined )
2929 const [ edit_files_system_instructions , set_edit_files_system_instructions ] =
3030 useState < string | undefined > ( undefined )
@@ -73,7 +73,9 @@ export const use_settings = (vscode: any) => {
7373 post_message ( vscode , { command : 'GET_EDIT_FILES_SYSTEM_INSTRUCTIONS' } )
7474 post_message ( vscode , { command : 'GET_FIND_RELEVANT_FILES_INSTRUCTIONS' } )
7575 post_message ( vscode , { command : 'GET_COMMIT_MESSAGE_INSTRUCTIONS' } )
76- post_message ( vscode , { command : 'GET_INCLUDE_PROMPTS_IN_COMMIT_MESSAGES' } )
76+ post_message ( vscode , {
77+ command : 'GET_ATTACH_ALL_PROMPTS_IN_COMMIT_MESSAGES_BY_DEFAULT'
78+ } )
7779 post_message ( vscode , { command : 'GET_CONTEXT_SIZE_WARNING_THRESHOLD' } )
7880 post_message ( vscode , { command : 'GET_EDIT_FORMAT_INSTRUCTIONS' } )
7981 post_message ( vscode , { command : 'GET_ARE_AUTOMATIC_CHECKPOINTS_DISABLED' } )
@@ -103,8 +105,10 @@ export const use_settings = (vscode: any) => {
103105 set_find_relevant_files_instructions ( message . instructions )
104106 } else if ( message . command == 'COMMIT_MESSAGE_INSTRUCTIONS' ) {
105107 set_commit_message_instructions ( message . instructions )
106- } else if ( message . command == 'INCLUDE_PROMPTS_IN_COMMIT_MESSAGES' ) {
107- set_include_prompts_in_commit_messages ( message . enabled )
108+ } else if (
109+ message . command == 'ATTACH_ALL_PROMPTS_IN_COMMIT_MESSAGES_BY_DEFAULT'
110+ ) {
111+ set_attach_all_prompts_in_commit_messages_by_default ( message . enabled )
108112 } else if ( message . command == 'CONTEXT_SIZE_WARNING_THRESHOLD' ) {
109113 set_context_size_warning_threshold ( message . threshold )
110114 } else if ( message . command == 'EDIT_FORMAT_INSTRUCTIONS' ) {
@@ -241,12 +245,12 @@ export const use_settings = (vscode: any) => {
241245 instructions
242246 } )
243247
244- const handle_include_prompts_in_commit_messages_change = (
248+ const handle_attach_all_prompts_in_commit_messages_by_default_change = (
245249 enabled : boolean
246250 ) => {
247- set_include_prompts_in_commit_messages ( enabled )
251+ set_attach_all_prompts_in_commit_messages_by_default ( enabled )
248252 post_message ( vscode , {
249- command : 'UPDATE_INCLUDE_PROMPTS_IN_COMMIT_MESSAGES ' ,
253+ command : 'UPDATE_ATTACH_ALL_PROMPTS_IN_COMMIT_MESSAGES_BY_DEFAULT ' ,
250254 enabled
251255 } )
252256 }
@@ -381,7 +385,7 @@ export const use_settings = (vscode: any) => {
381385 set_web_configurations,
382386 defaults,
383387 commit_message_instructions,
384- include_prompts_in_commit_messages ,
388+ attach_all_prompts_in_commit_messages_by_default ,
385389 edit_files_system_instructions,
386390 find_relevant_files_instructions,
387391 context_size_warning_threshold,
@@ -407,7 +411,7 @@ export const use_settings = (vscode: any) => {
407411 handle_add_web_configuration,
408412 handle_delete_web_configuration,
409413 handle_commit_instructions_change,
410- handle_include_prompts_in_commit_messages_change ,
414+ handle_attach_all_prompts_in_commit_messages_by_default_change ,
411415 handle_edit_files_system_instructions_change,
412416 handle_find_relevant_files_instructions_change,
413417 handle_open_editor_settings,
0 commit comments