Skip to content

Commit 10a9458

Browse files
authored
Merge pull request #6039 from mr-lee/master
fix(amazonq): fixed bug with high CPU use event loop for security scan findings
2 parents f81d9a1 + 2e4c369 commit 10a9458

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

packages/core/src/codewhisperer/views/securityIssue/securityIssueWebview.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ const Panel = VueWebview.compilePanel(SecurityIssueWebview)
7474
let activePanel: InstanceType<typeof Panel> | undefined
7575

7676
export async function showSecurityIssueWebview(ctx: vscode.ExtensionContext, issue: CodeScanIssue, filePath: string) {
77-
activePanel ??= new Panel(ctx)
77+
// always create a new panel per finding
78+
activePanel = new Panel(ctx)
7879
activePanel.server.setIssue(issue)
7980
activePanel.server.setFilePath(filePath)
8081

packages/core/src/codewhisperer/views/securityIssue/vue/root.vue

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,6 @@ export default defineComponent({
129129
created() {
130130
this.getData()
131131
},
132-
updated() {
133-
this.getData()
134-
},
135132
methods: {
136133
async getData() {
137134
const issue = await client.getIssue()

0 commit comments

Comments
 (0)