mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 17:19:48 +01:00
output: reveal last line and column, not only line because some users only use append in output and have a long line
fixes #26753
This commit is contained in:
@@ -152,7 +152,6 @@ export class TextResourceEditor extends BaseTextEditor {
|
||||
|
||||
/**
|
||||
* Reveals the last line of this editor if it has a model set.
|
||||
* If smart reveal is true will only reveal the last line if the line before last is visible #3351
|
||||
*/
|
||||
public revealLastLine(): void {
|
||||
const codeEditor = <ICodeEditor>this.getControl();
|
||||
@@ -160,7 +159,7 @@ export class TextResourceEditor extends BaseTextEditor {
|
||||
|
||||
if (model) {
|
||||
const lastLine = model.getLineCount();
|
||||
codeEditor.revealLine(lastLine);
|
||||
codeEditor.revealPosition({ lineNumber: lastLine, column: model.getLineMaxColumn(lastLine) });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user