@@ -15,7 +15,7 @@ export function setupOpenAIApiKey(context: vscode.ExtensionContext, channel: vsc
15
15
channel ,
16
16
getRepo ( uri ) ,
17
17
key ,
18
- 'OpenAI API key saved'
18
+ 'Configuration openai.api_key saved'
19
19
) ;
20
20
}
21
21
} ) ;
@@ -38,7 +38,7 @@ export function useDifferentModel(context: vscode.ExtensionContext, channel: vsc
38
38
channel ,
39
39
getRepo ( uri ) ,
40
40
model ,
41
- 'Model saved'
41
+ 'Configuration openai.model saved'
42
42
) ;
43
43
}
44
44
} ) ;
@@ -61,7 +61,7 @@ export function setOutputLanguage(context: vscode.ExtensionContext, channel: vsc
61
61
channel ,
62
62
getRepo ( uri ) ,
63
63
lang ,
64
- 'Output language saved'
64
+ 'Configuration output.lang saved'
65
65
) ;
66
66
}
67
67
} ) ;
@@ -76,7 +76,6 @@ export function showPerFileSummary(context: vscode.ExtensionContext, channel: vs
76
76
[ "Yes" , "No" ] ,
77
77
{
78
78
placeHolder : 'Enable "show per-file summary"?' ,
79
- ignoreFocusOut : true ,
80
79
}
81
80
) . then ( ( show ) => {
82
81
if ( show === "Yes" || show === "No" ) {
@@ -86,11 +85,35 @@ export function showPerFileSummary(context: vscode.ExtensionContext, channel: vs
86
85
channel ,
87
86
getRepo ( uri ) ,
88
87
show === "Yes" ? "true" : "false" ,
89
- 'Configuration show per-file summary saved'
88
+ 'Configuration output.show_per_file_summary saved'
90
89
) ;
91
90
}
92
91
} ) ;
93
92
} ) ;
94
93
95
94
context . subscriptions . push ( showPerFileCommand ) ;
96
95
}
96
+
97
+ export function disableConventionalCommit ( context : vscode . ExtensionContext , channel : vscode . OutputChannel ) {
98
+ let disableConvCommitCommand = vscode . commands . registerCommand ( 'gptcommit.disableConventionalCommit' , async ( uri ?: vscode . SourceControl ) => {
99
+ vscode . window . showQuickPick (
100
+ [ "Yes" , "No" ] ,
101
+ {
102
+ placeHolder : 'Disable conventional commit?' ,
103
+ }
104
+ ) . then ( ( show ) => {
105
+ if ( show === "Yes" || show === "No" ) {
106
+ saveConfig (
107
+ 'output.conventional_commit' ,
108
+ 'output.conventional_commit' ,
109
+ channel ,
110
+ getRepo ( uri ) ,
111
+ show === "Yes" ? "false" : "true" ,
112
+ 'Configuration output.conventional_commit saved'
113
+ ) ;
114
+ }
115
+ } ) ;
116
+ } ) ;
117
+
118
+ context . subscriptions . push ( disableConvCommitCommand ) ;
119
+ }
0 commit comments