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

Method exec

src/actions/commands/macro.ts:115–130  ·  view source on GitHub ↗
(position: Position, vimState: VimState)

Source from the content-addressed store, hash-verified

113 }
114
115 public override async exec(position: Position, vimState: VimState): Promise<void> {
116 const register = this.keysPressed[1].toLocaleLowerCase();
117
118 const isFilenameRegister = register === '%' || register === '#';
119 if (!Register.isValidRegister(register) || isFilenameRegister) {
120 StatusBar.displayError(vimState, VimError.InvalidRegisterName(register));
121 }
122
123 if (Register.has(register)) {
124 vimState.recordedState.transformer.addTransformation({
125 type: 'macro',
126 register,
127 replay: 'contentChange',
128 });
129 }
130 }
131}

Callers

nothing calls this directly

Calls 5

isValidRegisterMethod · 0.80
displayErrorMethod · 0.80
InvalidRegisterNameMethod · 0.80
hasMethod · 0.80
addTransformationMethod · 0.80

Tested by

no test coverage detected