-
Notifications
You must be signed in to change notification settings - Fork 94
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
fix: add extensions back to Data Set resources; resolve USS copy/paste bug #3127
Conversation
Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3127 +/- ##
==========================================
- Coverage 92.60% 92.55% -0.05%
==========================================
Files 113 113
Lines 11657 11649 -8
Branches 2591 2442 -149
==========================================
- Hits 10795 10782 -13
- Misses 860 865 +5
Partials 2 2 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com>
Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com>
Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com>
Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com>
Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com>
Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com>
📅 Suggested merge-by date: 10/3/2024 |
Why are even the file extensions required? If a user stores a JCL file in a data set that has COB or CBL in the name Zowe Explorer automatically assumes it is a COBOL file. If we leave Zowe Explorer agnostic then the user can define their own rules in "file.associations" using glob patterns there. Is there a limitation in the new virtual file system that requires using extensions? I know we had this in v1 and v2, but now is the opportunity to remove it (perhaps with a switch to turn it back on). |
@phaumer They aren't necessarily required, but without the extensions, it means that all users must define file associations for their data sets in order to get language detection - unless the LSP itself supports automatic detection. Adding a file extension allows VS Code to determine which LSPs are viable. Alternatively, we can assign a language ID, but since we can't assume/prioritize one language ID over another, the team felt it made sense to leverage the current behavior exhibited in v2 (adding file extensions). I've tested Zowe Explorer with all extension suffixes & language detection removed, but this causes some data sets to open without any language detection (detected as "Plain Text"). This would be a regression from v2's behavior, as the file extension provided context to VS Code so it can refer to those LSPs. By removing all aspects of this detection, it would shift the responsibility to LSPs to perform the detection (as well as requiring users to add their own associations). Ideally, we can get rid of this altogether - but this would be a breaking change for both users and extenders, and we are unfortunately past that cutoff for the v3 milestone. |
Yes, it should be down to the extenders providing the actual language support to make that determination imho. In Z Open Editor we generate files.associations based on our user settings and would not want Zowe Explorer make these decisions for us. To make it less breaking we could provide a switch to re-enable this (for users who want to continue using it) and could even add an extension point in the SDK to inject name manipulation code on open for extenders, but the current behavior introduced language specific behavior that language extenders might not want (which I complained about already for v1 :-) ). |
I think it makes sense to add a switch, but since the cut-off for breaking changes in Zowe v3 was the end of August, we'll have to keep this default behavior in place. As v3 progresses, we can look into an enhancement that would allow users to opt out of this behavior. |
Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com>
Okay, should be good to go now - please disregard the SonarCloud warning for duplication as it only occurs in test code. |
Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com>
I understand. I created #3131 for the follow-up. |
I tested out opening data sets - extensions are being added like they were in v2 👍 |
Great - thanks for testing! |
Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com>
Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com>
Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com>
Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com>
Signed-off-by: Billie Simmons <49491949+JillieBeanSim@users.noreply.github.com>
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! 😋
Left a few questions, mostly for my own understanding.
I don't believe that any of my comments should require changes to be made.
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.
Small merge conflict, but LGTM! 😋
Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com>
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 @traeok
Quality Gate failedFailed conditions |
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! 😋
Proposed changes
Release Notes
Milestone: vNext
Changelog: See
Proposed changes
Types of changes
Checklist
General
yarn workspace vscode-extension-for-zowe vscode:prepublish
pnpm --filter vscode-extension-for-zowe vscode:prepublish
Code coverage
Deployment