-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ErrorHandling for OpenWithEncoding function #3438
Conversation
Signed-off-by: likhithanimma1 <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3438 +/- ##
========================================
Coverage 93.23% 93.24%
========================================
Files 120 120
Lines 12662 12664 +2
Branches 2922 2755 -167
========================================
+ Hits 11806 11808 +2
Misses 855 855
Partials 1 1 ☔ View full report in Codecov by Sentry. |
📅 Suggested merge-by date: 2/20/2025 |
Signed-off-by: likhithanimma1 <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 😋
I do not disagree with the changes, but I'm a bit curious how this can be properly tested. 😕
Right now, there is no way to use the Open With Encoding via the command palette since it doesn't work without a node. 🤔
I could be missing something but if credentials are invalid, I don't believe you will be able to get to the spoolfile to right click it and open it with a specific encoding.
That said, I still like the changes in preparation for when we make the openWithEncoding command work from the command palette 😋
We have function |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @likhithanimma1
* Add ErrorHandling Signed-off-by: likhithanimma1 <[email protected]> * Increase unit test coverage Signed-off-by: likhithanimma1 <[email protected]> --------- Signed-off-by: likhithanimma1 <[email protected]> Co-authored-by: Fernando Rijo Cedeno <[email protected]>
* Add ErrorHandling * Increase unit test coverage --------- Signed-off-by: likhithanimma1 <[email protected]> Co-authored-by: Fernando Rijo Cedeno <[email protected]>
Proposed changes
Added try catch block for openWithEncoding function in order to catch any of the errors thrown.
Release Notes
Milestone:
Changelog:
Types of changes
Checklist
General
yarn workspace vscode-extension-for-zowe vscode:prepublish
pnpm --filter vscode-extension-for-zowe vscode:prepublish
Code coverage
Deployment
Further comments