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 {
196196
197197 private _showWidget ( initialRender : boolean = false ) {
198198 assertType ( this . _editor . hasModel ( ) ) ;
199+ assertType ( this . _activeSession ) ;
199200
200201 let widgetPosition : Position ;
201202 if ( initialRender ) {
202203 widgetPosition = this . _editor . getSelection ( ) . getEndPosition ( ) ;
203204 this . _zone . value . setContainerMargins ( ) ;
204205 this . _zone . value . setWidgetMargins ( widgetPosition ) ;
205206 } else {
206- assertType ( this . _activeSession ) ;
207207 assertType ( this . _strategy ) ;
208208 widgetPosition = this . _strategy . getWidgetPosition ( ) ?? this . _zone . value . position ?? this . _activeSession . wholeRange . value . getEndPosition ( ) ;
209209 const needsMargin = this . _strategy . needsMargin ( ) ;
Original file line number Diff line number Diff line change @@ -774,7 +774,7 @@ export class InlineChatZoneWidget extends ZoneWidget {
774774 }
775775
776776 override _getWidth ( info : EditorLayoutInfo ) : number {
777- return info . width - info . minimap . minimapWidth - 0 ;
777+ return info . width - info . minimap . minimapWidth ;
778778 }
779779
780780 public updateBackgroundColor ( position : Position , selection : IRange ) {
You can’t perform that action at this time.
0 commit comments