Skip to content

Commit c3033d5

Browse files
committed
style(ui): update progress notification text and behaviour
- Change notification title to "Diff Commit" - Make progress notification cancellable - Revise progress message text for clarity: - "Checking API key" -> "Validating API key" - "Generating message" -> "Generating commit message"
1 parent c38c8c1 commit c3033d5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/extension.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ export function activate(context: ExtensionContext) {
2121
return await window.withProgress(
2222
{
2323
location: ProgressLocation.Notification,
24-
title: "Generating commit message...",
25-
cancellable: false,
24+
title: "Diff Commit",
25+
cancellable: true,
2626
},
2727
async (progress) => {
2828
progress.report({ message: "Getting git diff..." })
@@ -32,14 +32,14 @@ export function activate(context: ExtensionContext) {
3232
return undefined
3333
}
3434

35-
progress.report({ message: "Checking API key..." })
35+
progress.report({ message: "Validating API key..." })
3636
const apiKey = (await apiKeyManager.getAPIKey()) ?? (await apiKeyManager.setAPIKey())
3737
if (!apiKey) {
3838
window.showErrorMessage("API Key is required")
3939
return undefined
4040
}
4141

42-
progress.report({ message: "Generating message..." })
42+
progress.report({ message: "Generating commit message..." })
4343
const config = configManager.getConfig()
4444
const generator = new CommitMessageGenerator(apiKey)
4545
return await generator.generateMessage(diff, config)

0 commit comments

Comments
 (0)