Skip to content

Commit 7be4f27

Browse files
committed
feat: save file after command
fix #12
1 parent 8f303bb commit 7be4f27

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/utils-ai-vscode/src/commands/description.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,9 @@ export function descriptionCommand(context: vscode.ExtensionContext) {
3838
editBuilder.replace(new vscode.Range(position, position), description)
3939
})
4040

41+
await editor.document.save()
42+
4143
const duration = Date.now() - time
42-
// show a success notification
4344
vscode.window.showInformationMessage(`Description generated from ${filename}`, {
4445
detail: `Done in ${duration}ms.`,
4546
})

0 commit comments

Comments
 (0)