Skip to content

Commit

Permalink
Merge pull request #6039 from mr-lee/master
Browse files Browse the repository at this point in the history
fix(amazonq): fixed bug with high CPU use event loop for security scan findings
  • Loading branch information
ashishrp-aws authored Nov 19, 2024
2 parents f81d9a1 + 2e4c369 commit 10a9458
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ const Panel = VueWebview.compilePanel(SecurityIssueWebview)
let activePanel: InstanceType<typeof Panel> | undefined

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,6 @@ export default defineComponent({
created() {
this.getData()
},
updated() {
this.getData()
},
methods: {
async getData() {
const issue = await client.getIssue()
Expand Down

0 comments on commit 10a9458

Please sign in to comment.