MCPcopy
hub / github.com/VSCodeVim/Vim / create

Method create

src/mode/modeHandler.ts:103–112  ·  view source on GitHub ↗
(
    handlerMap: IModeHandlerMap,
    textEditor: vscode.TextEditor,
  )

Source from the content-addressed store, hash-verified

101 }
102
103 public static async create(
104 handlerMap: IModeHandlerMap,
105 textEditor: vscode.TextEditor,
106 ): Promise<ModeHandler> {
107 const modeHandler = new ModeHandler(handlerMap, textEditor);
108 await modeHandler.vimState.load();
109 await modeHandler.setCurrentMode(configuration.startInInsertMode ? Mode.Insert : Mode.Normal);
110 modeHandler.syncCursors();
111 return modeHandler;
112 }
113
114 private constructor(handlerMap: IModeHandlerMap, textEditor: vscode.TextEditor) {
115 this.handlerMap = handlerMap;

Callers 1

getOrCreateMethod · 0.80

Calls 3

setCurrentModeMethod · 0.95
syncCursorsMethod · 0.95
loadMethod · 0.45

Tested by

no test coverage detected