We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35c1f3e commit 19ee98fCopy full SHA for 19ee98f
src/vs/workbench/contrib/inlineChat/browser/inlineChatController.ts
@@ -201,7 +201,7 @@ export class InlineChatController implements IEditorContribution {
201
202
let widgetPosition: Position | undefined;
203
if (initialRender) {
204
- widgetPosition = this._editor.getPosition();
+ widgetPosition = this._editor.getSelection().getEndPosition();
205
} else {
206
widgetPosition = this._strategy.getWidgetPosition() ?? this._zone.value.position ?? this._activeSession.wholeRange.value.getEndPosition();
207
}
0 commit comments