Skip to content

Commit c862be9

Browse files
committed
overriding the position
1 parent a0183bc commit c862be9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,13 @@ export class LivePreviewStrategy extends LiveStrategy {
435435
override hasFocus(): boolean {
436436
return super.hasFocus() || this._diffZone.value.hasFocus() || this._previewZone.value.hasFocus();
437437
}
438+
439+
override getWidgetPosition(): Position | undefined {
440+
if (this._session.lastTextModelChanges.length) {
441+
return this._session.wholeRange.value.getEndPosition();
442+
}
443+
return;
444+
}
438445
}
439446

440447
function showSingleCreateFile(accessor: ServicesAccessor, edit: EditResponse) {

0 commit comments

Comments
 (0)