MCPcopy Create free account
hub / github.com/TanStack/devtools / openInEditor

Function openInEditor

packages/devtools-vite/src/plugin.ts:229–238  ·  view source on GitHub ↗
(
          path,
          lineNum,
          columnNum,
        )

Source from the content-addressed store, hash-verified

227 },
228 onServerConsolePipe: (entries) => {
229 try {
230 const data = JSON.stringify({
231 entries: entries.map((e) => ({
232 level: e.level,
233 args: e.args,
234 source: 'server',
235 timestamp: e.timestamp || Date.now(),
236 })),
237 })
238
239 for (const client of sseClients) {
240 client.res.write(`data: ${data}\n\n`)
241 }

Callers 1

handleOpenSourceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected