Skip to content

Commit 2334cbc

Browse files
committed
revert more changes
1 parent 74c46a4 commit 2334cbc

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

packages/core/src/codewhisperer/commands/basicCommands.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55

6-
/* eslint-disable aws-toolkits/no-console-log */
7-
86
import * as vscode from 'vscode'
97
import { CodewhispererCodeScanIssueApplyFix, Component, telemetry } from '../../shared/telemetry/telemetry'
108
import { ExtContext, VSCODE_EXTENSION_ID } from '../../shared/extensions'
@@ -374,15 +372,13 @@ export const openSecurityIssuePanel = Commands.declare(
374372
if (targetIssue.suggestedFixes.length === 0) {
375373
await generateFix.execute(targetIssue, targetFilePath, 'webview', true, false)
376374
}
377-
378375
telemetry.codewhisperer_codeScanIssueViewDetails.emit({
379376
findingId: targetIssue.findingId,
380377
detectorId: targetIssue.detectorId,
381378
ruleId: targetIssue.ruleId,
382379
credentialStartUrl: AuthUtil.instance.startUrl,
383380
autoDetected: targetIssue.autoDetected,
384381
})
385-
386382
TelemetryHelper.instance.sendCodeScanRemediationsEvent(
387383
undefined,
388384
'CODESCAN_ISSUE_VIEW_DETAILS',
@@ -690,18 +686,13 @@ export const generateFix = Commands.declare(
690686
refresh: boolean = false,
691687
shouldOpenSecurityIssuePanel: boolean = true
692688
) => {
693-
console.log('in generate fix')
694689
const targetIssue: CodeScanIssue | undefined = issue instanceof IssueItem ? issue.issue : issue
695690
const targetFilePath: string = issue instanceof IssueItem ? issue.filePath : filePath
696691
const targetSource: Component = issue instanceof IssueItem ? 'tree' : source
697-
console.log('target issue', targetIssue)
698-
console.log('target file path', targetFilePath)
699-
console.log('target source', targetSource)
700692
if (!targetIssue) {
701693
return
702694
}
703695
if (targetIssue.ruleId === CodeWhispererConstants.sasRuleId) {
704-
console.log('GenerateFix is not available for SAS findings.')
705696
getLogger().warn('GenerateFix is not available for SAS findings.')
706697
return
707698
}
@@ -741,9 +732,6 @@ export const generateFix = Commands.declare(
741732
getLogger().debug(
742733
`Received fix with reference and user settings disallow references. Job ID: ${jobId}`
743734
)
744-
console.log(
745-
`Received fix with reference and user settings disallow references. Job ID: ${jobId}`
746-
)
747735
// TODO: re-enable notifications once references published
748736
// void vscode.window.showInformationMessage(
749737
// 'Your settings do not allow code generation with references.'
@@ -767,7 +755,6 @@ export const generateFix = Commands.declare(
767755
]
768756
: [],
769757
}
770-
console.log('finish updating issue', updatedIssue)
771758
await updateSecurityIssueWebview({
772759
issue: updatedIssue,
773760
isGenerateFixLoading: false,
@@ -778,7 +765,6 @@ export const generateFix = Commands.declare(
778765

779766
SecurityIssueProvider.instance.updateIssue(updatedIssue, targetFilePath)
780767
SecurityIssueTreeViewProvider.instance.refresh()
781-
console.log('finish updating webview')
782768
} catch (err) {
783769
const error = err instanceof Error ? err : new TypeError('Unexpected error')
784770
await updateSecurityIssueWebview({

packages/core/src/codewhisperer/commands/startCodeFixGeneration.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import { tempDirPath } from '../../shared/filesystemUtilities'
2121
import { CodeWhispererSettings } from '../util/codewhispererSettings'
2222
import { AuthUtil } from '../util/authUtil'
2323
import { saveDocumentIfDirty } from '../../shared/utilities/textDocumentUtilities'
24-
/* eslint-disable aws-toolkits/no-console-log */
2524

2625
export async function startCodeFixGeneration(
2726
client: DefaultCodeWhispererClient,

0 commit comments

Comments
 (0)