MCPcopy Create free account
hub / github.com/microsoft/vscode-extension-samples / getCursorStyle

Method getCursorStyle

vim-sample/src/controller.ts:94–105  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

92 }
93
94 public getCursorStyle(): TextEditorCursorStyle {
95 if (this._currentMode === Mode.NORMAL) {
96 if (/^([1-9]\d*)?(r|c)/.test(this._currentInput)) {
97 return TextEditorCursorStyle.Underline;
98 }
99 return TextEditorCursorStyle.Block;
100 }
101 if (this._currentMode === Mode.REPLACE) {
102 return TextEditorCursorStyle.Underline;
103 }
104 return TextEditorCursorStyle.Line;
105 }
106
107 private _getModeLabel(): string {
108 if (this._currentMode === Mode.NORMAL) {

Callers 1

_ensureStateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected