File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/vs/workbench/contrib/inlineChat/browser Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -720,7 +720,7 @@ export class InlineChatZoneWidget extends ZoneWidget {
720
720
private readonly _ctxVisible : IContextKey < boolean > ;
721
721
private readonly _ctxCursorPosition : IContextKey < 'above' | 'below' | '' > ;
722
722
private _dimension ?: Dimension ;
723
- private _indentationWidth : number = 0 ;
723
+ private _indentationWidth : number | undefined ;
724
724
725
725
constructor (
726
726
editor : ICodeEditor ,
@@ -776,7 +776,7 @@ export class InlineChatZoneWidget extends ZoneWidget {
776
776
777
777
private _availableSpaceGivenIndentation ( ) : number {
778
778
const info = this . editor . getLayoutInfo ( ) ;
779
- return info . contentWidth - ( info . glyphMarginWidth + info . decorationsWidth + this . _indentationWidth ) ;
779
+ return info . contentWidth - ( info . glyphMarginWidth + info . decorationsWidth + ( this . _indentationWidth ?? 0 ) ) ;
780
780
}
781
781
782
782
private _computeHeightInLines ( ) : number {
You can’t perform that action at this time.
0 commit comments