File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
controller/editContext/textArea Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -742,8 +742,7 @@ export class TextAreaEditContext extends AbstractEditContext {
742
742
}
743
743
744
744
// Try to render the textarea with the color/font style to match the text under it
745
- const viewPosition = this . _context . viewModel . coordinatesConverter . convertViewPositionToModelPosition ( new Position ( startPosition . lineNumber , 1 ) ) ;
746
- const lineHeight = this . _context . viewLayout . getLineHeightForLineNumber ( viewPosition . lineNumber ) ;
745
+ const lineHeight = this . _context . viewLayout . getLineHeightForLineNumber ( startPosition . lineNumber ) ;
747
746
const viewLineData = this . _context . viewModel . getViewLineData ( startPosition . lineNumber ) ;
748
747
const startTokenIndex = viewLineData . tokens . findTokenIndexAtOffset ( startPosition . column - 1 ) ;
749
748
const endTokenIndex = viewLineData . tokens . findTokenIndexAtOffset ( endPosition . column - 1 ) ;
Original file line number Diff line number Diff line change @@ -460,7 +460,7 @@ class DecorationTypeOptionsProvider implements IModelDecorationOptionsProvider {
460
460
public afterContentClassName : string | undefined ;
461
461
public glyphMarginClassName : string | undefined ;
462
462
public isWholeLine : boolean ;
463
- public lineHeight ? : number ;
463
+ public lineHeight : number | undefined ;
464
464
public overviewRuler : IModelDecorationOverviewRulerOptions | undefined ;
465
465
public stickiness : TrackedRangeStickiness | undefined ;
466
466
public beforeInjectedText : InjectedTextOptions | undefined ;
You can’t perform that action at this time.
0 commit comments