reveal chat zone should always reveal position in editor (#229838)

fixes https://github.com/microsoft/vscode-copilot/issues/8509
This commit is contained in:
Johannes Rieken
2024-09-26 16:58:27 +02:00
committed by GitHub
parent 7b238beeeb
commit 178c125fe2

View File

@@ -168,6 +168,7 @@ export class InlineChatZoneWidget extends ZoneWidget {
}
reveal(position: Position) {
this.editor.revealLinesInCenterIfOutsideViewport(position.lineNumber, position.lineNumber, ScrollType.Immediate);
this._scrollUp.reset();
this.updatePositionAndHeight(position);
}