Skip to content

Commit 19ee98f

Browse files
committed
instead of using get position use the end position of the selection
1 parent 35c1f3e commit 19ee98f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ export class InlineChatController implements IEditorContribution {
201201

202202
let widgetPosition: Position | undefined;
203203
if (initialRender) {
204-
widgetPosition = this._editor.getPosition();
204+
widgetPosition = this._editor.getSelection().getEndPosition();
205205
} else {
206206
widgetPosition = this._strategy.getWidgetPosition() ?? this._zone.value.position ?? this._activeSession.wholeRange.value.getEndPosition();
207207
}

0 commit comments

Comments
 (0)