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

Method addTransformation

src/transformations/transformer.ts:15–18  ·  view source on GitHub ↗
(transformation: Transformation)

Source from the content-addressed store, hash-verified

13 public readonly transformations: Transformation[] = [];
14
15 public addTransformation(transformation: Transformation): void {
16 Logger.debug(`Adding Transformation ${stringify(transformation)}`);
17 this.transformations.push(transformation);
18 }
19
20 public insert(position: Position, text: string, diff?: PositionDiff): void {
21 this.addTransformation({ type: 'insertText', position, text, diff });

Callers 15

insertMethod · 0.95
deleteMethod · 0.95
replaceMethod · 0.95
moveCursorMethod · 0.95
vscodeCommandMethod · 0.95
runMethod · 0.80
runFunction · 0.80
runMethod · 0.80
runMethod · 0.80
runMethod · 0.80
execFunction · 0.80

Calls 2

stringifyFunction · 0.90
debugMethod · 0.80

Tested by

no test coverage detected