Skip to content

Commit ca3848f

Browse files
committed
remove console log
1 parent 990a95f commit ca3848f

File tree

1 file changed

+2
-11
lines changed
  • packages/core/src/amazonq/webview/ui

1 file changed

+2
-11
lines changed

packages/core/src/amazonq/webview/ui/main.ts

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,6 @@ export const createMynahUI = (
342342
}
343343
},
344344
onChatAnswerReceived: (tabID: string, item: CWCChatItem, messageData: any) => {
345-
console.log('onChatAnswerReceived')
346345
if (item.type === ChatItemType.ANSWER_PART || item.type === ChatItemType.CODE_RESULT) {
347346
mynahUI.updateLastChatAnswer(tabID, {
348347
...(item.messageId !== undefined ? { messageId: item.messageId } : {}),
@@ -370,12 +369,6 @@ export const createMynahUI = (
370369
}
371370

372371
if (item.contextList !== undefined && item.contextList.length > 0) {
373-
item.contextList.forEach((file) => {
374-
console.log(
375-
`File: ${file.relativeFilePath}, Type: ${typeof file.lineRanges}, IsArray: ${Array.isArray(file.lineRanges)}`
376-
)
377-
console.log('Debugging lineRanges:', JSON.stringify(file.lineRanges, undefined, 2))
378-
})
379372
item.header = {
380373
fileList: {
381374
fileTreeTitle: '',
@@ -389,17 +382,15 @@ export const createMynahUI = (
389382
{
390383
label: file.lineRanges
391384
.map((range) => `line ${range.first} - ${range.second}`)
392-
.join(', '), // Default values, adjust as needed
393-
description: file.relativeFilePath, // Modify dynamically if needed
385+
.join(', '),
386+
description: file.relativeFilePath,
394387
clickable: true,
395388
},
396389
])
397390
),
398391
},
399392
}
400393
}
401-
console.log('item')
402-
console.log(item)
403394

404395
if (
405396
item.body !== undefined ||

0 commit comments

Comments
 (0)