Skip to content

Commit d952d11

Browse files
committed
fix: auto save the current file when users trigger auto debug commands
1 parent 8be30f1 commit d952d11

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/amazonq/src/lsp/chat/autoDebug/commands.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ export class AutoDebugCommands implements vscode.Disposable {
9797
if (!editor) {
9898
return
9999
}
100+
await editor.document.save()
100101
await this.controller.fixSpecificProblems(range, diagnostics)
101102
},
102103
'Fix with Amazon Q',
@@ -114,6 +115,7 @@ export class AutoDebugCommands implements vscode.Disposable {
114115
if (!editor) {
115116
return
116117
}
118+
await editor.document.save()
117119
await this.controller.fixAllProblemsInFile(10) // 10 errors per batch
118120
},
119121
'Fix All with Amazon Q',

0 commit comments

Comments
 (0)