File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
src/vs/workbench/contrib/inlineChat/browser Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -201,7 +201,7 @@ export class InlineChatController implements IEditorContribution {
201
201
202
202
let widgetPosition : Position | undefined ;
203
203
if ( initialRender ) {
204
- widgetPosition = this . _editor . getPosition ( ) ;
204
+ widgetPosition = this . _editor . getSelection ( ) . getEndPosition ( ) ;
205
205
this . _zone . value . setMargins ( widgetPosition ) ;
206
206
} else {
207
207
widgetPosition = this . _strategy . getWidgetPosition ( ) ?? this . _zone . value . position ?? this . _activeSession . wholeRange . value . getEndPosition ( ) ;
Original file line number Diff line number Diff line change @@ -825,6 +825,7 @@ export class InlineChatZoneWidget extends ZoneWidget {
825
825
if ( this . _indentationWidth === indentationWidth ) {
826
826
return ;
827
827
}
828
+ this . _indentationWidth = indentationWidth ;
828
829
const info = this . editor . getLayoutInfo ( ) ;
829
830
const marginWithoutIndentation = info . glyphMarginWidth + info . decorationsWidth + info . lineNumbersWidth ;
830
831
const marginWithIndentation = marginWithoutIndentation + this . _indentationWidth ;
You can’t perform that action at this time.
0 commit comments