MCPcopy Index your code
hub / github.com/continuedev/continue / logMessageText

Method logMessageText

core/llm/logFormatter.ts:238–258  ·  view source on GitHub ↗
(item: LLMInteractionItem, content: string)

Source from the content-addressed store, hash-verified

236 // will join onto a single line
237 // - It will wrap text at the wrap width
238 private logMessageText(item: LLMInteractionItem, content: string) {
239 const lines = content.split("\n");
240 for (let i = 0; i < lines.length; i++) {
241 let startAt: number | null = 0;
242 let marker = "| ";
243 while (startAt !== null) {
244 // When wrapping, the next start position is turned;
245 // null means we've written everything
246 startAt = this.logFragment(
247 item,
248 lines[i],
249 startAt,
250 marker,
251 true,
252 i === lines.length - 1,
253 true,
254 );
255 marker = ". ";
256 }
257 }
258 }
259
260 private logToolcalls(item: LLMInteractionItem, toolsCalls: ToolCallDelta[]) {
261 for (const toolCall of toolsCalls) {

Callers 3

logMessageContentMethod · 0.95
logMessageMethod · 0.95
logItemMethod · 0.95

Calls 1

logFragmentMethod · 0.95

Tested by

no test coverage detected