Skip to content

Commit 178c125

Browse files
authored
reveal chat zone should always reveal position in editor (microsoft#229838)
fixes microsoft/vscode-copilot#8509
1 parent 7b238be commit 178c125

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ export class InlineChatZoneWidget extends ZoneWidget {
168168
}
169169

170170
reveal(position: Position) {
171+
this.editor.revealLinesInCenterIfOutsideViewport(position.lineNumber, position.lineNumber, ScrollType.Immediate);
171172
this._scrollUp.reset();
172173
this.updatePositionAndHeight(position);
173174
}

0 commit comments

Comments
 (0)