MCPcopy Create free account
hub / github.com/continuedev/continue / addIndentation

Function addIndentation

core/edit/streamDiffLines.ts:61–71  ·  view source on GitHub ↗
(
  diffLineGenerator: AsyncGenerator<DiffLine>,
  indentation: string,
)

Source from the content-addressed store, hash-verified

59}
60
61export async function* addIndentation(
62 diffLineGenerator: AsyncGenerator<DiffLine>,
63 indentation: string,
64): AsyncGenerator<DiffLine> {
65 for await (const diffLine of diffLineGenerator) {
66 yield {
67 ...diffLine,
68 line: indentation + diffLine.line,
69 };
70 }
71}
72
73function modelIsInept(model: string): boolean {
74 return !(model.includes("gpt") || model.includes("claude"));

Callers 2

streamDiffLinesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected