This release delivers some key enhancements and fixes to the reported issues that you don’t want to miss, especially the enhancements to code snippets. Read on to discover more.
Code snippet enhancements
Code snippets are templates that make it easier to enter repeating code patterns. To help you improve productivity and standardize on code patterns and best practices, IBM Z Open Editor ships with a library of IBM field contributed code snippets for COBOL embedded SQL and CICS, PL/I embedded SQL, and various JCL snippets. You can use these code snippets with either the VS Code snippet picker or the code completion feature while editing a program file. For details, see Using code snippets.
If you are using the IBM Developer for z/OS (IDz) and have created custom code snippets there, you can export these code snippets and import them into the IBM Z Open Editor. Follow these steps to export and import code snippets.
You can also easily create your own code snippets by using the VS Code functions. For more information, see Creating your own code snippets.
Default setting for COBOL unreachable code warnings
COBOL unreachable code warnings is set to be off by default because there are cases in which it can provide false positives (see here for details). If you can accept the risk of a few false reports, you can enable it by specifying
"zopeneditor.cobol.enableUnreachableCodeWarnings": true in VS Code user or workspace setting.
In addition to the enhancements above, the following issues are fixed in this release:
- Fixed a code completion bug for COBOL and PL/I that would erase text to the right of the cursor.
- Fixed an issue in which invalid PIC clauses would not be reported as syntax errors.
- Issue 7: Fixed issues with COBOL unreachable code warnings not being shown at all in some cases.
- Issue 9: Fixed cases in which COBOL statements before the IDENTIFICATION DIVISION would break syntax checking.
- Issue 13: Fixed exceptions thrown by the PL/I LSP when computing document links.