RPGLE Analyzer
Preview extension for VS Code focused on understanding legacy and mixed RPGLE sources without overloading the standard editor experience.
RPGLE Analyzer keeps the built-in Outline structural and adds separate views for semantic and impact analysis.
What It Gives You
- Clean structural
Outline for procedures, parameters, local definitions, subroutines, files, prototypes, constants, indicators, SQL cursors, and data structures.
Semantic Insights for Read/Write analysis by variable and scope.
Impact Explorer for forward invocation flow plus basic incoming callers in the active file.
Graph Explorer for a guided local map of calls, file operations, and LikeDS -> DS relations.
Smart Preview, CodeLens, Folding, and Go To Parent IF for control-flow navigation.
Supported Scope
- Procedures:
P ... B/E, dcl-proc / end-proc
- Subroutines:
BEGSR / ENDSR
- PI parameters
- Prototypes:
PR, DCL-PR
- Variables and DS:
D, DCL-S, DCL-DS
- Named and unnamed fixed-form
DS
- Constants:
DCL-C and conservative fixed-form detection
- Indicators:
*IN.., *INLR, *INRT
KLIST / KFLD
- Files:
F, DCL-F
EXEC SQL DECLARE <cursor> CURSOR
Main Views
Outline
Use the standard VS Code Outline when you want structure first.
- Procedures stay grouped and readable
- Local definitions stay inside their procedure
- DS fields appear nested under their parent structure
- Optional reference lines can be shown under declarations
Semantic Insights
Use RPGLE: Open Semantic Insights when you want variable-level analysis.
- Groups variables by scope
- Shows
Read, Write, and Read/Write counts
- Supports partial-text filtering
- Lets you jump to declarations and relevant references
Impact Explorer
Use RPGLE: Open Impact Explorer when you want invocation flow from a selected root.
- Works on the active file
- Supports root selection
- Shows outgoing impact and basic incoming callers
- Supports partial-text filtering
Graph Explorer
Use RPGLE: Open Graph Explorer when you want a more conceptual local map.
- Invocation flow
- File interactions
LikeDS data-shape relations
Recommended Commands
RPGLE: Open Semantic Insights
RPGLE: Open Impact Explorer
RPGLE: Open Graph Explorer
RPGLE: Show Call Graph
RPGLE: Show Dependency Graph
RPGLE: Show Smart Preview
RPGLE: Go To Parent IF
Installation
Install the extension from the VS Code Marketplace when available, or from a provided .vsix package.
Short version:
- Open Extensions in VS Code.
- Choose Install from VSIX... if you received a package file.
- Open an
.rpgle, .rpg, or .sqlrpgle member.
More detail: INSTALL.md
Configuration
{
"rpgleOutline.enableDSpecVariables": true,
"rpgleOutline.enableKListFields": true,
"rpgleOutline.showReferencesInOutline": true,
"rpgleOutline.maxReferencesPerSymbol": 20,
"rpgleOutline.outlineSortMode": "alphabetical",
"rpgleOutline.enableLiveBlockNavigator": true,
"rpgleOutline.showLiveBlockStatus": true
}
Notes
- The extension is currently published as preview.
- Analysis is intentionally conservative to reduce false positives.
- Most deeper analysis is local to the active file, not whole-workspace.
Links
| |