MCPcopy Create free account
hub / github.com/Dart-Code/Dart-Code / addToLogHeader

Function addToLogHeader

src/extension/utils/log.ts:57–63  ·  view source on GitHub ↗
(f: () => string)

Source from the content-addressed store, hash-verified

55 ].join(platformEol);
56}
57export function addToLogHeader(f: () => string) {
58 try {
59 logHeader.push(f().replace(/\r/g, "").replace(/\n/g, "\r\n"));
60 } catch {
61 // Don't log here; we may be trying to access things that aren't available yet.
62 }
63}

Callers 1

buildLogHeadersFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected