Skip to content

🎥 Make videos programmatically with React

@remotion/studio-server: Replace file hyperlinks with path:line in Studio logs

JonnyBurgera33d80734397
diff --git a/packages/studio-server/src/codemods/delete-jsx-node.ts b/packages/studio-server/src/codemods/delete-jsx-node.ts
index f114f773f2..575c626896 100644
--- a/packages/studio-server/src/codemods/delete-jsx-node.ts
+++ b/packages/studio-server/src/codemods/delete-jsx-node.ts
@@ -11,6 +11,9 @@ import type {
JSXElement,
JSXExpressionContainer,
JSXFragment,
+ JSXIdentifier,
+ JSXMemberExpression,
+ JSXOpeningElement,
LogicalExpression,
NewExpression,
Node,
@@ -31,6 +34,37 @@ const {builders: b, namedTypes} = recast.types;
const nullLiteralExpr = (): Expression =>
b.nullLiteral() as unknown as Expression;
+const jsxOpeningNameToString = (name: JSXOpeningElement['name']): string => {
+ if (name.type === 'JSXIdentifier') {
+ return name.name;
+ }
+
+ if (name.type === 'JSXNamespacedName') {
+ return `${name.namespace.name}:${name.name.name}`;
+ }
+
+ if (name.type === 'JSXMemberExpression') {
+ const memberToString = (
+ expr: JSXMemberExpression | JSXIdentifier,
+ ): string => {
+ if (expr.type === 'JSXIdentifier') {
+ return expr.name;
+ }
+
+ return `${memberToString(expr.object)}.${expr.property.name}`;
+ };
+
+ return memberToString(name);
+ }
+
+ return 'Unknown';
+};
+
+/** e.g. `<Video>` or `<Remotion.Sequence>` for logs and undo copy. */
+export const getJsxElementTagLabel = (element: JSXElement): string => {
+ return `<${jsxOpeningNameToString(element.openingElement.name)}>`;
+};
+
export const findJsxElementPathForDeletion = (
ast: File,
nodePath: SequenceNodePath,
@@ -386,6 +420,8 @@ export const deleteJsxNode = async ({
}): Promise<{
output: string;
formatted: boolean;
+ nodeLabel: string;
+ logLine: number;
}> => {
const ast = parseAst(input);
const jsxPath = findJsxElementPathForDeletion(ast, nodePath);
@@ -395,6 +431,13 @@ export const deleteJsxNode = async ({
);
}
+ const jsxElement = jsxPath.node as JSXElement;
+ const nodeLabel = getJsxElementTagLabel(jsxElement);
+ const logLine =
+ jsxElement.openingElement.loc?.start.line ??
+ jsxElement.loc?.start.line ??
+ 1;
+
deleteJsxElementAtPath(jsxPath);
const finalFile = serializeAst(ast);
@@ -409,6 +452,8 @@ export const deleteJsxNode = async ({
return {
output: finalFile,
formatted: false,
+ nodeLabel,
+ logLine,
};
}
@@ -424,6 +469,8 @@ export const deleteJsxNode = async ({
return {
output: finalFile,
formatted: false,
+ nodeLabel,
+ logLine,
};
}
@@ -434,6 +481,8 @@ export const deleteJsxNode = async ({
return {
output: finalFile,
formatted: false,
+ nodeLabel,
+ logLine,
};
}
@@ -447,5 +496,7 @@ export const deleteJsxNode = async ({
return {
output: prettified,
formatted: true,
+ nodeLabel,
+ logLine,
};
};
diff --git a/packages/studio-server/src/codemods/update-default-props.ts b/packages/studio-server/src/codemods/update-default-props.ts
index ec856b74e8..3dc66816af 100644
--- a/packages/studio-server/src/codemods/update-default-props.ts
+++ b/packages/studio-server/src/codemods/update-default-props.ts
@@ -190,3 +190,74 @@ export const updateDefaultProps = async ({
return {output, formatted: didFormat};
};
+
+/** Line of the matching `<Composition>` / `<Still>` opening tag (for log links). */
+export const getCompositionDefaultPropsLine = ({
+ input,
+ compositionId,
+}: {
+ input: string;
+ compositionId: string;
+}): number => {
+ const ast = parseAst(input);
+ let line = 1;
+ let found = false;
+
+ recast.types.visit(ast, {
+ visitJSXElement(path) {
+ if (found) {
+ this.traverse(path);
+ return;
+ }
+
+ const {openingElement} = path.node;
+ const openingName = openingElement.name;
+ if (
+ openingName.type !== 'JSXIdentifier' &&
+ openingName.type !== 'JSXNamespacedName'
+ ) {
+ this.traverse(path);
+ return;
+ }
+
+ if (openingName.name !== 'Composition' && openingName.name !== 'Still') {
+ this.traverse(path);
+ return;
+ }
+
+ if (
+ !openingElement.attributes?.some((attr) => {
+ if (attr.type === 'JSXSpreadAttribute') {
+ return;
+ }
+
+ if (!attr.value) {
+ return;
+ }
+
+ if (attr.value.type === 'JSXElement') {
+ return;
+ }
+
+ if (attr.value.type === 'JSXExpressionContainer') {
+ return;
+ }
+
+ if (attr.value.type === 'JSXFragment') {
+ return;
+ }
+
+ return attr.name.name === 'id' && attr.value.value === compositionId;
+ })
+ ) {
+ this.traverse(path);
+ return;
+ }
+
+ found = true;
+ line = openingElement.loc?.start.line ?? path.node.loc?.start.line ?? 1;
+ },
+ });
+
+ return line;
+};
diff --git a/packages/studio-server/src/codemods/update-sequence-props.ts b/packages/studio-server/src/codemods/update-sequence-props.ts
index de9280df30..5c6698cc50 100644
--- a/packages/studio-server/src/codemods/update-sequence-props.ts
+++ b/packages/studio-server/src/codemods/update-sequence-props.ts
@@ -32,6 +32,7 @@ export const updateSequenceProps = async ({
output: string;
oldValueString: string;
formatted: boolean;
+ logLine: number;
}> => {
const ast = parseAst(input);
let oldValueString = '';
@@ -52,6 +53,8 @@ export const updateSequenceProps = async ({
);
}
+ const logLine = node.loc?.start.line ?? 1;
+
if (isNested) {
oldValueString = updateNestedProp({
node,
@@ -135,6 +138,7 @@ export const updateSequenceProps = async ({
output: finalFile,
oldValueString,
formatted: false,
+ logLine,
};
}
@@ -151,6 +155,7 @@ export const updateSequenceProps = async ({
output: finalFile,
oldValueString,
formatted: false,
+ logLine,
};
}
@@ -162,6 +167,7 @@ export const updateSequenceProps = async ({
output: finalFile,
oldValueString,
formatted: false,
+ logLine,
};
}
@@ -176,5 +182,6 @@ export const updateSequenceProps = async ({
output: prettified,
oldValueString,
formatted: true,
+ logLine,
};
};
diff --git a/packages/studio-server/src/preview-server/format-log-file-location.ts b/packages/studio-server/src/preview-server/format-log-file-location.ts
new file mode 100644
index 0000000000..6da93dd92a
--- /dev/null
+++ b/packages/studio-server/src/preview-server/format-log-file-location.ts
@@ -0,0 +1,13 @@
+import path from 'node:path';
+
+export const formatLogFileLocation = ({
+ remotionRoot,
+ absolutePath,
+ line,
+}: {
+ remotionRoot: string;
+ absolutePath: string;
+ line: number;
+}): string => {
+ return `${path.relative(remotionRoot, absolutePath)}:${line}`;
+};
diff --git a/packages/studio-server/src/preview-server/routes/apply-visual-control-change.ts b/packages/studio-server/src/preview-server/routes/apply-visual-control-change.ts
index e9d7e67a7f..0b34f25411 100644
--- a/packages/studio-server/src/preview-server/routes/apply-visual-control-change.ts
+++ b/packages/studio-server/src/preview-server/routes/apply-visual-control-change.ts
@@ -1,15 +1,17 @@
import {readFileSync} from 'node:fs';
import path from 'node:path';
+import type {File} from '@babel/types';
import {RenderInternals} from '@remotion/renderer';
import type {
ApplyVisualControlRequest,
ApplyVisualControlResponse,
} from '@remotion/studio-shared';
+import * as recast from 'recast';
import {parseAst, serializeAst} from '../../codemods/parse-ast';
import {applyCodemod} from '../../codemods/recast-mods';
import {writeFileAndNotifyFileWatchers} from '../../file-watcher';
-import {makeHyperlink} from '../../hyperlinks/make-link';
import type {ApiHandler} from '../api-types';
+import {formatLogFileLocation} from '../format-log-file-location';
import {waitForLiveEventsListener} from '../live-events';
import {
printUndoHint,
@@ -19,6 +21,29 @@ import {
import {suppressBundlerUpdateForFile} from '../watch-ignore-next-change';
import {warnAboutPrettierOnce} from './log-update';
+const getVisualControlChangeLine = (file: File, changeId: string): number => {
+ let line = 1;
+ recast.types.visit(file.program, {
+ visitCallExpression(callPath) {
+ const {node} = callPath;
+ if (
+ node.callee.type === 'Identifier' &&
+ node.callee.name === 'visualControl'
+ ) {
+ const firstArg = node.arguments[0];
+ if (firstArg?.type === 'StringLiteral' && firstArg.value === changeId) {
+ line = node.loc?.start.line ?? 1;
+ return false;
+ }
+ }
+
+ this.traverse(callPath);
+ },
+ });
+
+ return line;
+};
+
export const applyVisualControlHandler: ApiHandler<
ApplyVisualControlRequest,
ApplyVisualControlResponse
@@ -37,6 +62,8 @@ export const applyVisualControlHandler: ApiHandler<
const fileContents = readFileSync(absolutePath, 'utf-8');
const ast = parseAst(fileContents);
+ const logLine =
+ changes.length > 0 ? getVisualControlChangeLine(ast, changes[0].id) : 1;
const {newAst, changesMade} = applyCodemod({
file: ast,
@@ -80,6 +107,7 @@ export const applyVisualControlHandler: ApiHandler<
oldContents: fileContents,
logLevel,
remotionRoot,
+ logLine,
description: {
undoMessage: 'Undid visual control change',
redoMessage: 'Redid visual control change',
@@ -104,15 +132,14 @@ export const applyVisualControlHandler: ApiHandler<
});
});
- const locationLabel = `${fileRelativeToRoot}`;
- const fileLink = makeHyperlink({
- url: `file://${absolutePath}`,
- text: locationLabel,
- fallback: locationLabel,
+ const locationLabel = formatLogFileLocation({
+ remotionRoot,
+ absolutePath,
+ line: logLine,
});
RenderInternals.Log.info(
{indent: false, logLevel},
- `${RenderInternals.chalk.blueBright(`${fileLink}:`)} Applied visual control changes`,
+ `${RenderInternals.chalk.blueBright(`${locationLabel}:`)} Applied visual control changes`,
);
if (!formatted) {
warnAboutPrettierOnce(logLevel);
diff --git a/packages/studio-server/src/preview-server/routes/delete-jsx-node.ts b/packages/studio-server/src/preview-server/routes/delete-jsx-node.ts
index 5acce97c4c..b69cb8aa12 100644
--- a/packages/studio-server/src/preview-server/routes/delete-jsx-node.ts
+++ b/packages/studio-server/src/preview-server/routes/delete-jsx-node.ts
@@ -7,8 +7,8 @@ import type {
} from '@remotion/studio-shared';
import {deleteJsxNode} from '../../codemods/delete-jsx-node';
import {writeFileAndNotifyFileWatchers} from '../../file-watcher';
-import {makeHyperlink} from '../../hyperlinks/make-link';
import type {ApiHandler} from '../api-types';
+import {formatLogFileLocation} from '../format-log-file-location';
import {
printUndoHint,
pushToUndoStack,
@@ -33,7 +33,7 @@ export const deleteJsxNodeHandler: ApiHandler<
const fileContents = readFileSync(absolutePath, 'utf-8');
- const {output, formatted} = await deleteJsxNode({
+ const {output, formatted, nodeLabel, logLine} = await deleteJsxNode({
input: fileContents,
nodePath,
});
@@ -43,9 +43,10 @@ export const deleteJsxNodeHandler: ApiHandler<
oldContents: fileContents,
logLevel,
remotionRoot,
+ logLine,
description: {
- undoMessage: 'Undid node deletion',
- redoMessage: 'Redid node deletion',
+ undoMessage: `Undid deletion of ${nodeLabel}`,
+ redoMessage: `Redid deletion of ${nodeLabel}`,
},
entryType: 'delete-jsx-node',
suppressHmrOnFileRestore: false,
@@ -53,14 +54,14 @@ export const deleteJsxNodeHandler: ApiHandler<
suppressUndoStackInvalidation(absolutePath);
writeFileAndNotifyFileWatchers(absolutePath, output);
- const fileLink = makeHyperlink({
- url: `file://${absolutePath}`,
- text: fileRelativeToRoot,
- fallback: fileRelativeToRoot,
+ const locationLabel = formatLogFileLocation({
+ remotionRoot,
+ absolutePath,
+ line: logLine,
});
RenderInternals.Log.info(
{indent: false, logLevel},
- `${RenderInternals.chalk.blueBright(`${fileLink}:`)} Deleted node`,
+ `${RenderInternals.chalk.blueBright(`${locationLabel}:`)} Deleted ${nodeLabel}`,
);
if (!formatted) {
warnAboutPrettierOnce(logLevel);
diff --git a/packages/studio-server/src/preview-server/routes/log-update.ts b/packages/studio-server/src/preview-server/routes/log-update.ts
index dc52eba288..acfd832d42 100644
--- a/packages/studio-server/src/preview-server/routes/log-update.ts
+++ b/packages/studio-server/src/preview-server/routes/log-update.ts
@@ -1,6 +1,5 @@
import {RenderInternals} from '@remotion/renderer';
import type {LogLevel} from '@remotion/renderer';
-import {makeHyperlink} from '../../hyperlinks/make-link';
let warnedAboutPrettier = false;
@@ -133,8 +132,8 @@ export const formatPropChange = ({
};
export const logUpdate = ({
- absolutePath,
fileRelativeToRoot,
+ line,
key,
oldValueString,
newValueString,
@@ -142,8 +141,8 @@ export const logUpdate = ({
formatted,
logLevel,
}: {
- absolutePath: string;
fileRelativeToRoot: string;
+ line: number;
key: string;
oldValueString: string;
newValueString: string;
@@ -151,12 +150,7 @@ export const logUpdate = ({
formatted: boolean;
logLevel: LogLevel;
}) => {
- const locationLabel = `${fileRelativeToRoot}`;
- const fileLink = makeHyperlink({
- url: `file://${absolutePath}`,
- text: locationLabel,
- fallback: locationLabel,
- });
+ const locationLabel = `${fileRelativeToRoot}:${line}`;
const propChange = formatPropChange({
key,
oldValueString: normalizeQuotes(oldValueString),
@@ -166,7 +160,7 @@ export const logUpdate = ({
});
RenderInternals.Log.info(
{indent: false, logLevel},
- `${RenderInternals.chalk.blueBright(`${fileLink}:`)} ${propChange}`,
+ `${RenderInternals.chalk.blueBright(`${locationLabel}:`)} ${propChange}`,
);
if (!formatted) {
warnAboutPrettierOnce(logLevel);
diff --git a/packages/studio-server/src/preview-server/routes/save-sequence-props.ts b/packages/studio-server/src/preview-server/routes/save-sequence-props.ts
index a6ca3e3da2..2a6425f70c 100644
--- a/packages/studio-server/src/preview-server/routes/save-sequence-props.ts
+++ b/packages/studio-server/src/preview-server/routes/save-sequence-props.ts
@@ -38,13 +38,14 @@ export const saveSequencePropsHandler: ApiHandler<
const fileContents = readFileSync(absolutePath, 'utf-8');
- const {output, oldValueString, formatted} = await updateSequenceProps({
- input: fileContents,
- nodePath,
- key,
- value: JSON.parse(value),
- defaultValue: defaultValue !== null ? JSON.parse(defaultValue) : null,
- });
+ const {output, oldValueString, formatted, logLine} =
+ await updateSequenceProps({
+ input: fileContents,
+ nodePath,
+ key,
+ value: JSON.parse(value),
+ defaultValue: defaultValue !== null ? JSON.parse(defaultValue) : null,
+ });
const newValueString = JSON.stringify(JSON.parse(value));
const parsedDefault =
@@ -75,6 +76,7 @@ export const saveSequencePropsHandler: ApiHandler<
oldContents: fileContents,
logLevel,
remotionRoot,
+ logLine,
description: {
undoMessage: `Undid ${undoPropChange}`,
redoMessage: `Redid ${redoPropChange}`,
@@ -87,8 +89,8 @@ export const saveSequencePropsHandler: ApiHandler<
writeFileAndNotifyFileWatchers(absolutePath, output);
logUpdate({
- absolutePath,
fileRelativeToRoot,
+ line: logLine,
key,
oldValueString,
newValueString,
diff --git a/packages/studio-server/src/preview-server/routes/update-default-props.ts b/packages/studio-server/src/preview-server/routes/update-default-props.ts
index 58fa548def..a2890d01c9 100644
--- a/packages/studio-server/src/preview-server/routes/update-default-props.ts
+++ b/packages/studio-server/src/preview-server/routes/update-default-props.ts
@@ -1,14 +1,16 @@
import {readFileSync} from 'node:fs';
-import path from 'node:path';
import {RenderInternals} from '@remotion/renderer';
import type {
UpdateDefaultPropsRequest,
UpdateDefaultPropsResponse,
} from '@remotion/studio-shared';
-import {updateDefaultProps} from '../../codemods/update-default-props';
+import {
+ getCompositionDefaultPropsLine,
+ updateDefaultProps,
+} from '../../codemods/update-default-props';
import {writeFileAndNotifyFileWatchers} from '../../file-watcher';
-import {makeHyperlink} from '../../hyperlinks/make-link';
import type {ApiHandler} from '../api-types';
+import {formatLogFileLocation} from '../format-log-file-location';
import {getProjectInfo} from '../project-info';
import {
printUndoHint,
@@ -41,6 +43,10 @@ export const updateDefaultPropsHandler: ApiHandler<
checkIfTypeScriptFile(projectInfo.rootFile);
const fileContents = readFileSync(projectInfo.rootFile, 'utf-8');
+ const logLine = getCompositionDefaultPropsLine({
+ input: fileContents,
+ compositionId,
+ });
const {output, formatted} = await updateDefaultProps({
compositionId,
input: fileContents,
@@ -53,6 +59,7 @@ export const updateDefaultPropsHandler: ApiHandler<
oldContents: fileContents,
logLevel,
remotionRoot,
+ logLine,
description: {
undoMessage: `Undid default props update for "${compositionId}"`,
redoMessage: `Redid default props update for "${compositionId}"`,
@@ -64,19 +71,14 @@ export const updateDefaultPropsHandler: ApiHandler<
suppressBundlerUpdateForFile(projectInfo.rootFile);
writeFileAndNotifyFileWatchers(projectInfo.rootFile, output);
- const fileRelativeToRoot = path.relative(
+ const locationLabel = formatLogFileLocation({
remotionRoot,
- projectInfo.rootFile,
- );
- const locationLabel = `${fileRelativeToRoot}`;
- const fileLink = makeHyperlink({
- url: `file://${projectInfo.rootFile}`,
- text: locationLabel,
- fallback: locationLabel,
+ absolutePath: projectInfo.rootFile,
+ line: logLine,
});
RenderInternals.Log.info(
{indent: false, logLevel},
- `${RenderInternals.chalk.blueBright(`${fileLink}:`)} Updated default props for "${compositionId}"`,
+ `${RenderInternals.chalk.blueBright(`${locationLabel}:`)} Updated default props for "${compositionId}"`,
);
if (!formatted) {
warnAboutPrettierOnce(logLevel);
diff --git a/packages/studio-server/src/preview-server/undo-stack.ts b/packages/studio-server/src/preview-server/undo-stack.ts
index 5a9e2d9c14..c5e3ac3140 100644
--- a/packages/studio-server/src/preview-server/undo-stack.ts
+++ b/packages/studio-server/src/preview-server/undo-stack.ts
@@ -1,5 +1,4 @@
import {readFileSync} from 'node:fs';
-import path from 'node:path';
import type {LogLevel} from '@remotion/renderer';
import {RenderInternals} from '@remotion/renderer';
import {parseAst} from '../codemods/parse-ast';
@@ -8,7 +7,7 @@ import {
installFileWatcher,
writeFileAndNotifyFileWatchers,
} from '../file-watcher';
-import {makeHyperlink} from '../hyperlinks/make-link';
+import {formatLogFileLocation} from './format-log-file-location';
import {waitForLiveEventsListener} from './live-events';
import {suppressBundlerUpdateForFile} from './watch-ignore-next-change';
@@ -26,6 +25,8 @@ type UndoEntryType =
type UndoEntry = {
filePath: string;
oldContents: string;
+ /** 1-based source line for terminal/IDE file links (e.g. path:line). */
+ logLine: number;
description: UndoEntryDescription;
/** When true, undo/redo file restores call `suppressBundlerUpdateForFile` (skip HMR refresh). */
suppressHmrOnFileRestore: boolean;
@@ -65,6 +66,7 @@ export function pushToUndoStack({
oldContents,
logLevel,
remotionRoot,
+ logLine,
description,
entryType,
suppressHmrOnFileRestore,
@@ -73,6 +75,7 @@ export function pushToUndoStack({
oldContents: string;
logLevel: LogLevel;
remotionRoot: string;
+ logLine: number;
description: UndoEntryDescription;
entryType: UndoEntryType;
suppressHmrOnFileRestore: boolean;
@@ -82,6 +85,7 @@ export function pushToUndoStack({
undoStack.push({
filePath,
oldContents,
+ logLine,
description,
entryType,
suppressHmrOnFileRestore,
@@ -117,12 +121,14 @@ export function printUndoHint(logLevel: LogLevel) {
export function pushToRedoStack({
filePath,
oldContents,
+ logLine,
description,
entryType,
suppressHmrOnFileRestore,
}: {
filePath: string;
oldContents: string;
+ logLine: number;
description: UndoEntryDescription;
entryType: UndoEntryType;
suppressHmrOnFileRestore: boolean;
@@ -130,6 +136,7 @@ export function pushToRedoStack({
redoStack.push({
filePath,
oldContents,
+ logLine,
description,
entryType,
suppressHmrOnFileRestore,
@@ -259,18 +266,18 @@ function emitVisualControlChanges(fileContents: string) {
}
}
-function logFileAction(action: string, filePath: string) {
- const locationLabel = storedRemotionRoot
- ? path.relative(storedRemotionRoot, filePath)
- : filePath;
- const fileLink = makeHyperlink({
- url: `file://${filePath}`,
- text: locationLabel,
- fallback: locationLabel,
- });
+function logFileAction(action: string, filePath: string, logLine: number) {
+ const locationLabel =
+ storedRemotionRoot !== null
+ ? formatLogFileLocation({
+ remotionRoot: storedRemotionRoot,
+ absolutePath: filePath,
+ line: logLine,
+ })
+ : `${filePath}:${logLine}`;
RenderInternals.Log.info(
{indent: false, logLevel: storedLogLevel},
- `${RenderInternals.chalk.blueBright(`${fileLink}:`)} ${action}`,
+ `${RenderInternals.chalk.blueBright(`${locationLabel}:`)} ${action}`,
);
}
@@ -284,6 +291,7 @@ export function popUndo(): {success: true} | {success: false; reason: string} {
redoStack.push({
filePath: entry.filePath,
oldContents: currentContents,
+ logLine: entry.logLine,
description: entry.description,
entryType: entry.entryType,
suppressHmrOnFileRestore: entry.suppressHmrOnFileRestore,
@@ -302,7 +310,7 @@ export function popUndo(): {success: true} | {success: false; reason: string} {
`Undo: restored ${entry.filePath} (undo: ${undoStack.length}, redo: ${redoStack.length})`,
),
);
- logFileAction(entry.description.undoMessage, entry.filePath);
+ logFileAction(entry.description.undoMessage, entry.filePath, entry.logLine);
if (entry.entryType === 'visual-control') {
emitVisualControlChanges(entry.oldContents);
@@ -323,6 +331,7 @@ export function popRedo(): {success: true} | {success: false; reason: string} {
undoStack.push({
filePath: entry.filePath,
oldContents: currentContents,
+ logLine: entry.logLine,
description: entry.description,
entryType: entry.entryType,
suppressHmrOnFileRestore: entry.suppressHmrOnFileRestore,
@@ -341,7 +350,7 @@ export function popRedo(): {success: true} | {success: false; reason: string} {
`Redo: restored ${entry.filePath} (undo: ${undoStack.length}, redo: ${redoStack.length})`,
),
);
- logFileAction(entry.description.redoMessage, entry.filePath);
+ logFileAction(entry.description.redoMessage, entry.filePath, entry.logLine);
if (entry.entryType === 'visual-control') {
emitVisualControlChanges(entry.oldContents);