3
3
* Licensed under the MIT License. See License.txt in the project root for license information.
4
4
*--------------------------------------------------------------------------------------------*/
5
5
6
- import { ConfigurationChangedEvent , EditorAutoClosingEditStrategy , EditorAutoClosingStrategy , EditorAutoIndentStrategy , EditorAutoSurroundStrategy , EditorOption , TextEditorCursorStyle } from 'vs/editor/common/config/editorOptions' ;
6
+ import { ConfigurationChangedEvent , EditorAutoClosingEditStrategy , EditorAutoClosingStrategy , EditorAutoIndentStrategy , EditorAutoSurroundStrategy , EditorOption } from 'vs/editor/common/config/editorOptions' ;
7
7
import { LineTokens } from 'vs/editor/common/tokens/lineTokens' ;
8
8
import { Position } from 'vs/editor/common/core/position' ;
9
9
import { Range } from 'vs/editor/common/core/range' ;
@@ -80,20 +80,6 @@ export class CursorConfiguration {
80
80
81
81
private readonly _languageId : string ;
82
82
private _electricChars : { [ key : string ] : boolean } | null ;
83
- public readonly cursorStyle : TextEditorCursorStyle ;
84
-
85
- public get cursorStyleKind ( ) : 'beforeCharacter' | 'onCharacter' {
86
- switch ( this . cursorStyle ) {
87
- case TextEditorCursorStyle . Line :
88
- case TextEditorCursorStyle . LineThin :
89
- return 'beforeCharacter' ;
90
- case TextEditorCursorStyle . Block :
91
- case TextEditorCursorStyle . Underline :
92
- case TextEditorCursorStyle . BlockOutline :
93
- case TextEditorCursorStyle . UnderlineThin :
94
- return 'onCharacter' ;
95
- }
96
- }
97
83
98
84
public static shouldRecreate ( e : ConfigurationChangedEvent ) : boolean {
99
85
return (
@@ -113,7 +99,6 @@ export class CursorConfiguration {
113
99
|| e . hasChanged ( EditorOption . fontInfo )
114
100
|| e . hasChanged ( EditorOption . readOnly )
115
101
|| e . hasChanged ( EditorOption . wordSegmenterLocales )
116
- || e . hasChanged ( EditorOption . cursorStyle )
117
102
) ;
118
103
}
119
104
@@ -152,7 +137,6 @@ export class CursorConfiguration {
152
137
this . autoSurround = options . get ( EditorOption . autoSurround ) ;
153
138
this . autoIndent = options . get ( EditorOption . autoIndent ) ;
154
139
this . wordSegmenterLocales = options . get ( EditorOption . wordSegmenterLocales ) ;
155
- this . cursorStyle = options . get ( EditorOption . cursorStyle ) ;
156
140
157
141
this . surroundingPairs = { } ;
158
142
this . _electricChars = null ;
0 commit comments