Skip to content

Commit 8097a3f

Browse files
authored
Merge branch 'feature/inline-rollback' into inline-rollback
2 parents 37c7390 + 39b60a8 commit 8097a3f

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@ export class AutoDebugCommands implements vscode.Disposable {
9797
if (!editor) {
9898
return
9999
}
100+
const saved = await editor.document.save()
101+
if (!saved) {
102+
throw new Error('Failed to save document')
103+
}
100104
await this.controller.fixSpecificProblems(range, diagnostics)
101105
},
102106
'Fix with Amazon Q',
@@ -114,6 +118,10 @@ export class AutoDebugCommands implements vscode.Disposable {
114118
if (!editor) {
115119
return
116120
}
121+
const saved = await editor.document.save()
122+
if (!saved) {
123+
throw new Error('Failed to save document')
124+
}
117125
await this.controller.fixAllProblemsInFile(10) // 10 errors per batch
118126
},
119127
'Fix All with Amazon Q',

packages/core/src/codewhisperer/service/recommendationHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ export class RecommendationHandler {
335335
msg += `\n ${index.toString().padStart(2, '0')}: ${indent(item.content, 8, true).trim()}`
336336
session.requestIdList.push(requestId)
337337
}
338-
getLogger('nextEditPrediction').debug(`codeWhisper request ${requestId}`)
338+
getLogger().debug(msg)
339339
if (invocationResult === 'Succeeded') {
340340
CodeWhispererCodeCoverageTracker.getTracker(session.language)?.incrementServiceInvocationCount()
341341
UserWrittenCodeTracker.instance.onQFeatureInvoked()

0 commit comments

Comments
 (0)