Skip to content

Commit f37431e

Browse files
committed
pretty logging patch
1 parent 3e3f05f commit f37431e

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

packages/core/src/codewhisperer/util/editorContext.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -215,12 +215,11 @@ function logSupplementalContext(supplementalContext: CodeWhispererSupplementalCo
215215
).trimStart()
216216

217217
supplementalContext.supplementalContextItems.forEach((context, index) => {
218+
logString += indent(`\nChunk ${index}:\n`, 4, true)
218219
logString += indent(
219-
`\nChunk ${index}:
220-
Path: ${context.filePath}
221-
Length: ${context.content}
222-
Score: ${context.score}
223-
-----------------------------------------------`,
220+
`Path: ${context.filePath}
221+
Length: ${context.content.length}
222+
Score: ${context.score}`,
224223
8,
225224
true
226225
)

0 commit comments

Comments
 (0)