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 {
202202 let widgetPosition : Position | undefined ;
203203 if ( initialRender ) {
204204 widgetPosition = this . _editor . getPosition ( ) ;
205+ this . _zone . value . setMargins ( widgetPosition ) ;
205206 } else {
206207 widgetPosition = this . _strategy . getWidgetPosition ( ) ?? this . _zone . value . position ?? this . _activeSession . wholeRange . value . getEndPosition ( ) ;
207208 }
208209 this . _zone . value . show ( widgetPosition ) ;
209- if ( initialRender ) {
210- this . _zone . value . setMargins ( widgetPosition ) ;
211- }
212210 }
213211
214212 protected async _nextState ( state : State , options : InlineChatRunOptions | undefined ) : Promise < void > {
You can’t perform that action at this time.
0 commit comments