zowe / zowe-explorer-vscode

Visual Studio Code Extension for Zowe, which lets users interact with z/OS Data Sets, Unix System Services, and Jobs on a remote mainframe instance. Powered by Zowe SDKs.
Eclipse Public License 2.0
159 stars 89 forks source link

fix: Fire `onProfilesUpdate` event when secure credentials are updated #2948

Closed traeok closed 2 weeks ago

traeok commented 2 weeks ago

Proposed changes

Previously, we ran the zowe.extRefresh command to signal a refresh of Zowe Explorer and its extenders when credentials are updated for a profile. While this worked to synchronize credentials in most cases, extender event callbacks for onProfilesUpdate were never fired for this scenario.

This updates the logic so that we fire the onProfilesUpdateEmitter event when the following conditions are met:

How to test

Release Notes

Milestone: v2.16.2

Changelog:

Types of changes

What types of changes does your code introduce to Zowe Explorer? Put an x in the boxes that apply

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This checklist will be used as reference for both the contributor and the reviewer

codecov[bot] commented 2 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 93.49%. Comparing base (3bdc5a1) to head (25ce8d1).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## maintenance #2948 +/- ## ============================================ Coverage 93.48% 93.49% ============================================ Files 104 104 Lines 10843 10845 +2 Branches 2280 2281 +1 ============================================ + Hits 10137 10139 +2 Misses 705 705 Partials 1 1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

traeok commented 2 weeks ago

Looks like the audit check is failing on maintenance from the braces vulnerability. This is addressed in #2946, so feel free to ignore it here; I will merge in the changes once that PR is merged into maintenance.

sonarcloud[bot] commented 2 weeks ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud