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:
isidor
2017-05-31 15:41:10 +02:00
parent 4a38bdc1f5
commit 20a33eeb2c
@@ -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) });
}
}