Skip to content

Commit

Permalink
Merge pull request #2614 from zowe/feat/jcl-detection-proclib
Browse files Browse the repository at this point in the history
feat(jcl-detection): Detect PROC and PROCBLIB as jcl for syntax highlighting
  • Loading branch information
JillieBeanSim authored Dec 12, 2023
2 parents b2c62f4 + ba1e718 commit eb20290
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/zowe-explorer/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ All notable changes to the "vscode-extension-for-zowe" extension will be documen
- Added Display confirmation dialog when submitting local JCL. [#2061](https://github.com/zowe/vscode-extension-for-zowe/issues/2061)
- Added support for adding a Zowe profile across all trees [#2603](https://github.com/zowe/vscode-extension-for-zowe/issues/2603)
- Added "Filter Jobs" feature in Jobs tree view: accessible via filter icon or right-clicking on session node. [#2599](https://github.com/zowe/vscode-extension-for-zowe/issues/2599)
- PROC and PROCLIB datasets are recognized as JCL files for syntax highlighting [#2614](https://github.com/zowe/vscode-extension-for-zowe/issues/2614)

### Bug fixes

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

0 comments on commit eb20290

Please sign in to comment.