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 {
201201
202202 let widgetPosition : Position | undefined ;
203203 if ( initialRender ) {
204- widgetPosition = this . _editor . getPosition ( ) ;
204+ widgetPosition = this . _editor . getSelection ( ) . getEndPosition ( ) ;
205205 this . _zone . value . setMargins ( widgetPosition ) ;
206206 } else {
207207 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 {
825825 if ( this . _indentationWidth === indentationWidth ) {
826826 return ;
827827 }
828+ this . _indentationWidth = indentationWidth ;
828829 const info = this . editor . getLayoutInfo ( ) ;
829830 const marginWithoutIndentation = info . glyphMarginWidth + info . decorationsWidth + info . lineNumbersWidth ;
830831 const marginWithIndentation = marginWithoutIndentation + this . _indentationWidth ;
You can’t perform that action at this time.
0 commit comments