message: fix: no need to change cursor if there is no active editor. closes
diff: @@ -71,14 +71,12 @@ export async function getAndUpdateModeHandler(): Promise<ModeHandler> {
  // Temporary workaround for vscode bug not changing cursor style properly
  // https://github.com/Microsoft/vscode/issues/17472
  // https://github.com/Microsoft/vscode/issues/17513
  + if (curHandler.vimState.editor) {
  const desiredStyle = curHandler.vimState.editor.options.cursorStyle;
  // Temporarily change to any other cursor style besides the desired type, then change back
  - if (desiredStyle === vscode.TextEditorCursorStyle.Block) {
  - curHandler.vimState.editor.options.cursorStyle = vscode.TextEditorCursorStyle.Line;
  - curHandler.vimState.editor.options.cursorStyle = desiredStyle;
  - } else {
  - curHandler.vimState.editor.options.cursorStyle = vscode.TextEditorCursorStyle.Block;
  + let tempStyle = (desiredStyle || vscode.TextEditorCursorStyle.Line) % 6 + 1;
  + curHandler.vimState.editor.options.cursorStyle = tempStyle;
  curHandler.vimState.editor.options.cursorStyle = desiredStyle;
  }
  