You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix for adding listeners for projects post startup for all projects (#4396)
* Fix for repeated post project startup activity for code scans for all projects.
* Added comment description in project startup activity.
* Fix for duplicates issues in popups for file scans.
* added if check for file key and detekt fixes.
* Update CodeWhispererProjectStartupActivity.kt comment
Copy file name to clipboardExpand all lines: plugins/toolkit/jetbrains-core/src/software/aws/toolkits/jetbrains/services/codewhisperer/codescan/CodeWhispererCodeScanManager.kt
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -560,6 +560,10 @@ class CodeWhispererCodeScanManager(val project: Project) {
560
560
}
561
561
// Remove the old scan nodes from the file node.
562
562
fileNode.removeAllChildren()
563
+
// Remove the entry for the file from the scan nodes lookup.
Copy file name to clipboardExpand all lines: plugins/toolkit/jetbrains-core/src/software/aws/toolkits/jetbrains/services/codewhisperer/startup/CodeWhispererProjectStartupActivity.kt
+15-11Lines changed: 15 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,21 @@ class CodeWhispererProjectStartupActivity : StartupActivity.DumbAware {
40
40
overridefunrunActivity(project:Project) {
41
41
if (!isQConnected(project)) return
42
42
43
-
// ---- Everything below will be triggered only when CW is enabled, everything above will be triggered once per project ----
43
+
// ---- Everything below will be triggered only when CW is enabled ----
44
+
45
+
val actionManager =CodeWhispererExplorerActionManager.getInstance()
46
+
val scanManager =CodeWhispererCodeScanManager.getInstance(project)
0 commit comments