Skip to content

Commit 72d20c9

Browse files
committed
renaming from with to given in the function name
1 parent 73baf5f commit 72d20c9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -764,13 +764,13 @@ export class InteractiveEditorZoneWidget extends ZoneWidget {
764764
protected override _doLayout(heightInPixel: number): void {
765765

766766
const maxWidth = !this.widget.showsAnyPreview() ? 640 : Number.MAX_SAFE_INTEGER;
767-
const width = Math.min(maxWidth, this._availableSpaceWithIndentation());
767+
const width = Math.min(maxWidth, this._availableSpaceGivenIndentation());
768768
this._dimension = new Dimension(width, heightInPixel);
769769
this.widget.domNode.style.width = `${width}px`;
770770
this.widget.layout(this._dimension);
771771
}
772772

773-
private _availableSpaceWithIndentation(): number {
773+
private _availableSpaceGivenIndentation(): number {
774774
const info = this.editor.getLayoutInfo();
775775
return info.contentWidth - (info.glyphMarginWidth + info.decorationsWidth + this._indentationWidth);
776776
}
@@ -815,7 +815,7 @@ export class InteractiveEditorZoneWidget extends ZoneWidget {
815815
this._indentationWidth = this.editor.getOffsetForColumn(indentationLineNumber ?? endLineNumber, indentationLevel ?? viewModel.getLineFirstNonWhitespaceColumn(endLineNumber));
816816
const marginWithoutIndentation = info.glyphMarginWidth + info.decorationsWidth + info.lineNumbersWidth;
817817
const marginWithIndentation = marginWithoutIndentation + this._indentationWidth;
818-
const isEnoughAvailableSpaceWithIndentation = this._availableSpaceWithIndentation() > 400;
818+
const isEnoughAvailableSpaceWithIndentation = this._availableSpaceGivenIndentation() > 400;
819819
this._indentationWidth = isEnoughAvailableSpaceWithIndentation ? this._indentationWidth : 0;
820820
const spaceLeft = isEnoughAvailableSpaceWithIndentation ? marginWithIndentation : marginWithoutIndentation;
821821
const spaceRight = info.minimap.minimapWidth + info.verticalScrollbarWidth;

0 commit comments

Comments
 (0)