MCPcopy Index your code
hub / github.com/midrender/revideo / openFileInEditor

Function openFileInEditor

packages/ui/src/utils/sourceMaps.ts:130–142  ·  view source on GitHub ↗
(entry: StackTraceEntry)

Source from the content-addressed store, hash-verified

128}
129
130export async function openFileInEditor(entry: StackTraceEntry) {
131 const relative = entry.file.startsWith('/')
132 ? entry.file.slice(1)
133 : entry.file;
134
135 await withLoader(() =>
136 fetch(
137 `/__open-in-editor?file=${encodeURIComponent(relative)}:${entry.line}:${
138 entry.column
139 }`,
140 ),
141 );
142}
143
144export function getSourceCodeFrame(entry: StackTraceEntry): string | null {
145 if (!entry.source || !entry.sourceMap) {

Callers 3

SourceCodeFrameFunction · 0.90
StackTraceFunction · 0.90
findAndOpenFirstUserFileFunction · 0.85

Calls 1

withLoaderFunction · 0.90

Tested by

no test coverage detected