Skip to content
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

Zowe Explorer should be programming language agnostic #3131

Open
phaumer opened this issue Sep 19, 2024 · 3 comments
Open

Zowe Explorer should be programming language agnostic #3131

phaumer opened this issue Sep 19, 2024 · 3 comments
Labels
enhancement New feature or request priority-low Legit issue but cosmetic or nice-to-have Research Needed

Comments

@phaumer
Copy link
Member

phaumer commented Sep 19, 2024

Describe the bug

Zowe Explorer provides access to z/OS resources such as MVS data sets and PDS members. You can click on a member to open it in the default VS Code text editor. With its excellent SDK it provides a fantastic platform for extenders to layer their capabilities on top of Zowe Explorer. Zowe Explorer's scope imho is not to provide language specific capabilities such as syntax highlighting or code completion. It therefore needs to be designed language agnostic and not make any assumption about the content of an MVS, USS, or spool file. This would be the responsibility of Zowe Explorer extender extensions to interpret content and decide special behavior such as assuming a program language. Zowe Explorer right now looks at data set names and appends file extensions based on hard coded rules not allowing extenders to control for themselves how a file should be treated.

To Reproduce

  1. Create a PDS with COBOL in the name such as IBMUSER.SAMPLE.COBOL
  2. Add a JCL file to the data set
  3. Open the file: it has a .cbl file extension preventing a JCL language server VS Code extension to appropriately interpret its contents.

Expected behavior

Zowe Explorer should not make any assumptions about the files it opens; other than encodings in UNIX file tags etc.

Screenshots

Desktop (please complete the following information):

  • OS: all
  • Zowe Explorer Version: v1 to 3
  • (Optional) Zowe CLI Version:
  • (Optional) Are you using Secure Credential Store?

Additional context

@phaumer phaumer added the bug Something isn't working label Sep 19, 2024
Copy link

Thank you for creating a bug report.
We will investigate the bug and evaluate its impact on the product.
If you haven't already, please ensure you have provided steps to reproduce the bug and as much context as possible.

@JTonda JTonda added enhancement New feature or request Research Needed and removed bug Something isn't working labels Sep 24, 2024
Copy link

Thank you for raising this enhancement request.
The community has 90 days to vote on it.
If the enhancement receives at least 10 upvotes, it is added to our development backlog.
If it receives fewer votes, the issue is closed.

@JTonda
Copy link

JTonda commented Sep 24, 2024

Research Needed: Investigate backwards compatible implementation with possible toggle/switch setting.

Note: If we change the behavior of removing the extensions, that will shift some of the responsibility to the LSPs for detecting the language in open editor.

@JTonda JTonda added the priority-low Legit issue but cosmetic or nice-to-have label Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority-low Legit issue but cosmetic or nice-to-have Research Needed
Projects
Status: Low Priority
Development

No branches or pull requests

2 participants