Skip to content

Commit ee3b543

Browse files
committed
cleaning the code
1 parent b994219 commit ee3b543

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/vs/workbench/contrib/inlineChat/browser/inlineChatController.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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();

src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)