Skip to content

Commit

Permalink
CM-32340 - Fix detections count in SCA notifications (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshalX authored Feb 9, 2024
1 parent ab0368b commit e46ac7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## [v1.2.2]

- Fix detections count in SCA notifications
- Fix work on Windows

## [v1.2.1]
Expand Down
2 changes: 1 addition & 1 deletion src/services/scaScanner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ const handleScanDetections = async (

if (result.detections.length && !getWorkspaceState(VscodeStates.NotificationIsOpen)) {
updateWorkspaceState(VscodeStates.NotificationIsOpen, true);
TrayNotifications.showProblemsDetection(Object.keys(diagnostics).length, ScanType.Sca);
TrayNotifications.showProblemsDetection(result.detections.length, ScanType.Sca);
}

refreshTreeViewData({
Expand Down

0 comments on commit e46ac7a

Please sign in to comment.