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

Detect PROC and PROCBLIB as jcl #2612

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/zowe-explorer/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
All notable changes to the "vscode-extension-for-zowe" extension will be documented in this file.

## TBD Release
- PROC and PROCLIB datasets are recognized as JCL [#2612](https://github.com/zowe/vscode-extension-for-zowe/pull/2612)
adam-wolfe marked this conversation as resolved.
Show resolved Hide resolved

### New features and enhancements

Expand Down
2 changes: 1 addition & 1 deletion packages/zowe-explorer/src/shared/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ function appendSuffix(label: string): string {
const bracket = label.indexOf("(");
const split = bracket > -1 ? label.substr(0, bracket).split(".", limit) : label.split(".", limit);
for (let i = split.length - 1; i > 0; i--) {
if (["JCL", "JCLLIB", "CNTL"].includes(split[i])) {
if (["JCL", "JCLLIB", "CNTL", "PROC", "PROCLIB"].includes(split[i])) {
return label.concat(".jcl");
}
if (["COBOL", "CBL", "COB", "SCBL"].includes(split[i])) {
Expand Down
Loading