File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/vs/workbench/contrib/inlineChat/browser Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -196,14 +196,14 @@ export class InlineChatController implements IEditorContribution {
196
196
197
197
private _showWidget ( initialRender : boolean = false ) {
198
198
assertType ( this . _editor . hasModel ( ) ) ;
199
+ assertType ( this . _activeSession ) ;
199
200
200
201
let widgetPosition : Position ;
201
202
if ( initialRender ) {
202
203
widgetPosition = this . _editor . getSelection ( ) . getEndPosition ( ) ;
203
204
this . _zone . value . setContainerMargins ( ) ;
204
205
this . _zone . value . setWidgetMargins ( widgetPosition ) ;
205
206
} else {
206
- assertType ( this . _activeSession ) ;
207
207
assertType ( this . _strategy ) ;
208
208
widgetPosition = this . _strategy . getWidgetPosition ( ) ?? this . _zone . value . position ?? this . _activeSession . wholeRange . value . getEndPosition ( ) ;
209
209
const needsMargin = this . _strategy . needsMargin ( ) ;
Original file line number Diff line number Diff line change @@ -774,7 +774,7 @@ export class InlineChatZoneWidget extends ZoneWidget {
774
774
}
775
775
776
776
override _getWidth ( info : EditorLayoutInfo ) : number {
777
- return info . width - info . minimap . minimapWidth - 0 ;
777
+ return info . width - info . minimap . minimapWidth ;
778
778
}
779
779
780
780
public updateBackgroundColor ( position : Position , selection : IRange ) {
You can’t perform that action at this time.
0 commit comments