Skip to content

Commit 10541ca

Browse files
committed
edit the comments
1 parent 62e9817 commit 10541ca

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/amazonq/src/lsp/chat/diffAnimation/streamingDiffController.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,9 @@ export class StreamingDiffController implements vscode.Disposable {
373373
getLogger().warn(`[StreamingDiffController] ⚠️ Failed to cleanup temp file ${tempFilePath}: ${error}`)
374374
}
375375
}
376-
376+
/**
377+
* Scroll editor to line
378+
*/
377379
private scrollEditorToLine(editor: vscode.TextEditor, line: number): void {
378380
const scrollLine = line
379381
editor.revealRange(new vscode.Range(scrollLine, 0, scrollLine, 0), vscode.TextEditorRevealType.InCenter)
@@ -447,7 +449,6 @@ export class StreamingDiffController implements vscode.Disposable {
447449
}
448450
}
449451
// Delay cleanup to allow final UI updates and user to see completion state
450-
// before removing visual elements and cleaning up resources
451452
setTimeout(async () => {
452453
try {
453454
await this.cleanupTempFile(session.tempFilePath)

0 commit comments

Comments
 (0)