Skip to content

Commit 5a32cf6

Browse files
committed
refactor: remove unnecessary async/await from command handler
1 parent f65ea2b commit 5a32cf6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/extension.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ export function activate(context: vscode.ExtensionContext) {
1616
);
1717

1818
context.subscriptions.push(
19-
vscode.commands.registerCommand("diffy-explain-ai.generateCommitMessage", async () => {
20-
vscode.window.withProgress(
19+
vscode.commands.registerCommand("diffy-explain-ai.generateCommitMessage", () => {
20+
return vscode.window.withProgress(
2121
{
2222
location: vscode.ProgressLocation.Notification,
2323
cancellable: false,

0 commit comments

Comments
 (0)