File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
packages/core/src/awsService/cloudWatchLogs/commands Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -116,9 +116,8 @@ function getTextEditorsToScroll(document: vscode.TextDocument): vscode.TextEdito
116116}
117117
118118function scrollTextEditorToBottom ( editor : vscode . TextEditor ) {
119- const topPosition = new vscode . Position ( Math . max ( editor . document . lineCount - 2 , 0 ) , 0 )
120- const bottomPosition = new vscode . Position ( Math . max ( editor . document . lineCount - 2 , 0 ) , 0 )
121- editor . revealRange ( new vscode . Range ( topPosition , bottomPosition ) , vscode . TextEditorRevealType . Default )
119+ const position = new vscode . Position ( Math . max ( editor . document . lineCount - 2 , 0 ) , 0 )
120+ editor . revealRange ( new vscode . Range ( position , position ) , vscode . TextEditorRevealType . Default )
122121}
123122
124123async function updateTextDocumentWithNewLogEvents (
You can’t perform that action at this time.
0 commit comments