-
Notifications
You must be signed in to change notification settings - Fork 93
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
V3.0.0 File extension detection misidentifies types #3181
Comments
Thank you for creating a bug report. |
Hi @JPeake42, Thanks for bringing this to our attention and my apologies for the oversight. @t1m0thyj implemented a fix for this and it should be available in v3.0.1. Regarding the
We'll make sure our documentation is updated so others are aware of this change. |
I don't think Zowe Explorer should make any assumptions about languages content. This should be the job of language VS Code extensions that are typically installed on top of Zowe Explorer. If Zowe Explorer already intercepts this and guess wrong then it leads to a bad user experience. |
Thank you both for the quick response and fix @traeok / @t1m0thyj! That formatting for the I hope I've upvoted your issue correctly @phaumer, I agree that it seems sensible that Zowe leaves it to the language extensions to figure out what a file is. The |
Describe the bug
Some datasets are misidentified as file types they are not. E.g 'USERID.A.OUTPUT' being detected as '.ASM'. This leads to VS Code setting the language mode according to the incorrect file type.
To Reproduce
Expected behavior
File extensions would only be appended to obviously named data sets, e.g "USERID.SOMETHING.JCL" or "USERID.SOMETHING.COBOL".
Desktop (please complete the following information):
Additional context
I think this is due to changes to the DatasetUtils.ts file in eb06448. The getExtension function is checking if any qualifier is present in each 'match' instead of in the 'matches' array. Before, only qualifiers such as 'JCL' or 'COBOL' would be picked up, but now if a qualifier contains a subset of either, they would be considered.
Additionally, in previous versions, VS Codes "files.associations" setting could be used to allow users to finetune what datasets should be considered what types, though with changes in v3.0.0, this seems to not work anymore for members (Though this may be a separate issue I suppose).
Apologies if I'm missing anything, I don't frequent github / projects, so I hope the above is sufficient context.
The text was updated successfully, but these errors were encountered: