@@ -36,6 +36,10 @@ export const use_settings = (vscode: any) => {
3636 const [ voice_input_instructions , set_voice_input_instructions ] = useState <
3737 string | undefined
3838 > ( undefined )
39+ const [
40+ include_prompts_in_commit_messages ,
41+ set_include_prompts_in_commit_messages
42+ ] = useState < boolean | undefined > ( undefined )
3943 const [
4044 edit_context_system_instructions ,
4145 set_edit_context_system_instructions
@@ -82,6 +86,7 @@ export const use_settings = (vscode: any) => {
8286 post_message ( vscode , { command : 'GET_VOICE_INPUT_CONFIGURATIONS' } )
8387 post_message ( vscode , { command : 'GET_PRUNE_CONTEXT_CONFIGURATIONS' } )
8488 post_message ( vscode , { command : 'GET_COMMIT_MESSAGE_INSTRUCTIONS' } )
89+ post_message ( vscode , { command : 'GET_INCLUDE_PROMPTS_IN_COMMIT_MESSAGES' } )
8590 post_message ( vscode , { command : 'GET_VOICE_INPUT_INSTRUCTIONS' } )
8691 post_message ( vscode , { command : 'GET_CONTEXT_SIZE_WARNING_THRESHOLD' } )
8792 post_message ( vscode , { command : 'GET_EDIT_FORMAT_INSTRUCTIONS' } )
@@ -116,6 +121,8 @@ export const use_settings = (vscode: any) => {
116121 set_prune_context_configs ( message . configurations )
117122 } else if ( message . command == 'COMMIT_MESSAGE_INSTRUCTIONS' ) {
118123 set_commit_message_instructions ( message . instructions )
124+ } else if ( message . command == 'INCLUDE_PROMPTS_IN_COMMIT_MESSAGES' ) {
125+ set_include_prompts_in_commit_messages ( message . enabled )
119126 } else if ( message . command == 'VOICE_INPUT_INSTRUCTIONS' ) {
120127 set_voice_input_instructions ( message . instructions )
121128 } else if ( message . command == 'CONTEXT_SIZE_WARNING_THRESHOLD' ) {
@@ -321,6 +328,16 @@ export const use_settings = (vscode: any) => {
321328 instructions
322329 } )
323330
331+ const handle_include_prompts_in_commit_messages_change = (
332+ enabled : boolean
333+ ) => {
334+ set_include_prompts_in_commit_messages ( enabled )
335+ post_message ( vscode , {
336+ command : 'UPDATE_INCLUDE_PROMPTS_IN_COMMIT_MESSAGES' ,
337+ enabled
338+ } )
339+ }
340+
324341 const handle_voice_input_instructions_change = ( instructions : string ) =>
325342 post_message ( vscode , {
326343 command : 'UPDATE_VOICE_INPUT_INSTRUCTIONS' ,
@@ -451,6 +468,7 @@ export const use_settings = (vscode: any) => {
451468 set_prune_context_configs,
452469 voice_input_instructions,
453470 commit_message_instructions,
471+ include_prompts_in_commit_messages,
454472 edit_context_system_instructions,
455473 context_size_warning_threshold,
456474 edit_format_instructions,
@@ -475,6 +493,7 @@ export const use_settings = (vscode: any) => {
475493 handle_unset_default_config,
476494 handle_voice_input_instructions_change,
477495 handle_commit_instructions_change,
496+ handle_include_prompts_in_commit_messages_change,
478497 handle_edit_context_system_instructions_change,
479498 handle_open_editor_settings,
480499 handle_open_ignore_patterns_settings,
0 commit comments