Skip to content

Commit a9cf4fb

Browse files
committed
changing to end position
1 parent 8904b3e commit a9cf4fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ export class LivePreviewStrategy extends LiveStrategy {
419419
return this._initialPosition;
420420
} else {
421421
if (hasEditResponse) {
422-
return range.getStartPosition();
422+
return range.getEndPosition();
423423
} else {
424424
return this._initialPosition;
425425
}
@@ -442,7 +442,7 @@ function minimalJumpPosition(editor: ICodeEditor, initialPosition: Position | un
442442
const viewModel = editor._getViewModel();
443443
assertType(viewModel);
444444
if (hasEditResponse) {
445-
const endPosition = range.getStartPosition();
445+
const endPosition = range.getEndPosition();
446446
const visibleRange = viewModel.getCompletelyVisibleViewRange();
447447
if (visibleRange.containsPosition(endPosition)) {
448448
return endPosition;

0 commit comments

Comments
 (0)