@@ -264,7 +264,7 @@ export interface IEditorOptions {
264264 /**
265265 * Control the width of the cursor when cursorStyle is set to 'line'
266266 */
267- lineCursorWidth ?: number ;
267+ cursorWidth ?: number ;
268268 /**
269269 * Enable font ligatures.
270270 * Defaults to false.
@@ -800,7 +800,7 @@ export interface InternalEditorViewOptions {
800800 readonly cursorBlinking : TextEditorCursorBlinkingStyle ;
801801 readonly mouseWheelZoom : boolean ;
802802 readonly cursorStyle : TextEditorCursorStyle ;
803- readonly lineCursorWidth : number ;
803+ readonly cursorWidth : number ;
804804 readonly hideCursorInOverviewRuler : boolean ;
805805 readonly scrollBeyondLastLine : boolean ;
806806 readonly smoothScrolling : boolean ;
@@ -1071,7 +1071,7 @@ export class InternalEditorOptions {
10711071 && a . cursorBlinking === b . cursorBlinking
10721072 && a . mouseWheelZoom === b . mouseWheelZoom
10731073 && a . cursorStyle === b . cursorStyle
1074- && a . lineCursorWidth === b . lineCursorWidth
1074+ && a . cursorWidth === b . cursorWidth
10751075 && a . hideCursorInOverviewRuler === b . hideCursorInOverviewRuler
10761076 && a . scrollBeyondLastLine === b . scrollBeyondLastLine
10771077 && a . smoothScrolling === b . smoothScrolling
@@ -1672,7 +1672,7 @@ export class EditorOptionsValidator {
16721672 cursorBlinking : _cursorBlinkingStyleFromString ( opts . cursorBlinking , defaults . cursorBlinking ) ,
16731673 mouseWheelZoom : _boolean ( opts . mouseWheelZoom , defaults . mouseWheelZoom ) ,
16741674 cursorStyle : _cursorStyleFromString ( opts . cursorStyle , defaults . cursorStyle ) ,
1675- lineCursorWidth : _clampedInt ( opts . lineCursorWidth , defaults . lineCursorWidth , 1 , Number . MAX_VALUE ) ,
1675+ cursorWidth : _clampedInt ( opts . cursorWidth , defaults . cursorWidth , 0 , Number . MAX_VALUE ) ,
16761676 hideCursorInOverviewRuler : _boolean ( opts . hideCursorInOverviewRuler , defaults . hideCursorInOverviewRuler ) ,
16771677 scrollBeyondLastLine : _boolean ( opts . scrollBeyondLastLine , defaults . scrollBeyondLastLine ) ,
16781678 smoothScrolling : _boolean ( opts . smoothScrolling , defaults . smoothScrolling ) ,
@@ -1776,7 +1776,7 @@ export class InternalEditorOptionsFactory {
17761776 cursorBlinking : opts . viewInfo . cursorBlinking ,
17771777 mouseWheelZoom : opts . viewInfo . mouseWheelZoom ,
17781778 cursorStyle : opts . viewInfo . cursorStyle ,
1779- lineCursorWidth : opts . viewInfo . lineCursorWidth ,
1779+ cursorWidth : opts . viewInfo . cursorWidth ,
17801780 hideCursorInOverviewRuler : opts . viewInfo . hideCursorInOverviewRuler ,
17811781 scrollBeyondLastLine : opts . viewInfo . scrollBeyondLastLine ,
17821782 smoothScrolling : opts . viewInfo . smoothScrolling ,
@@ -2218,7 +2218,7 @@ export const EDITOR_DEFAULTS: IValidatedEditorOptions = {
22182218 cursorBlinking : TextEditorCursorBlinkingStyle . Blink ,
22192219 mouseWheelZoom : false ,
22202220 cursorStyle : TextEditorCursorStyle . Line ,
2221- lineCursorWidth : 2 ,
2221+ cursorWidth : 0 ,
22222222 hideCursorInOverviewRuler : false ,
22232223 scrollBeyondLastLine : true ,
22242224 smoothScrolling : false ,
0 commit comments