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

Function stringify

src/transformations/transformations.ts:297–305  ·  view source on GitHub ↗
(transformation: Transformation)

Source from the content-addressed store, hash-verified

295};
296
297export function stringify(transformation: Transformation): string {
298 if (transformation.type === 'replayRecordedState') {
299 return `Replay: ${transformation.recordedState.actionsRun
300 .map((x) => x.keysPressed.join(''))
301 .join('')}`;
302 } else {
303 return JSON.stringify(transformation);
304 }
305}

Callers 1

addTransformationMethod · 0.90

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected