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

port(v2): Unsaved confirmation dialog for "Open with Encoding" feature #2911

Closed traeok closed 1 month ago

traeok commented 1 month ago

Proposed changes

Backport of the confirmation dialog shown for "Open with Encoding" when trying to change the encoding on an unsaved file.

Note: currently this only reverts the active editor. I'm still looking for a solution that will allow us to revert an editor that isn't active but is open - if anyone is aware of one please let me know 😋

In v3 we use the vscode.window.tabGroups approach to look for an editor in all open tabs, but this is not supported for VS Code versions older than v1.65.

Release Notes

Milestone: 2.17.0

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 1 month ago

Codecov Report

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

Project coverage is 93.49%. Comparing base (4ad11e9) to head (21b9bc1).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #2911 +/- ## ========================================== + Coverage 93.48% 93.49% +0.01% ========================================== Files 104 104 Lines 10869 10892 +23 Branches 2264 2272 +8 ========================================== + Hits 10161 10184 +23 Misses 707 707 Partials 1 1 ```

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

sonarcloud[bot] commented 1 month 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