File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
src/vs/workbench/contrib/inlineChat/browser Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -202,13 +202,11 @@ export class InlineChatController implements IEditorContribution {
202
202
let widgetPosition : Position | undefined ;
203
203
if ( initialRender ) {
204
204
widgetPosition = this . _editor . getPosition ( ) ;
205
+ this . _zone . value . setMargins ( widgetPosition ) ;
205
206
} else {
206
207
widgetPosition = this . _strategy . getWidgetPosition ( ) ?? this . _zone . value . position ?? this . _activeSession . wholeRange . value . getEndPosition ( ) ;
207
208
}
208
209
this . _zone . value . show ( widgetPosition ) ;
209
- if ( initialRender ) {
210
- this . _zone . value . setMargins ( widgetPosition ) ;
211
- }
212
210
}
213
211
214
212
protected async _nextState ( state : State , options : InlineChatRunOptions | undefined ) : Promise < void > {
You can’t perform that action at this time.
0 commit comments