A Visual Studio Code extension that generates UML class diagrams for InterSystems ObjectScript classes. This extension not only generates class diagrams but also provides interactive viewing and navigation capabilities.
Features
Generate UML class diagrams from .cls files
Support for both single class and folder-level diagram generation
Right-click context menu integration in both editor and explorer
Visualize class relationships, properties, and methods
Built on PlantUML for reliable diagram rendering
Interactive Class Diagram Browsing
Click on class names, properties, or methods to quickly jump to the corresponding code
SVG diagrams embedded in HTML for smooth interaction
Visual navigation of class relationships
Requirements
Visual Studio Code 1.74.0 or higher
Java Runtime Environment (JRE) 8 or higher for PlantUML diagram generation
InterSystems ObjectScript files (.cls)
Installation
Install the extension through VS
Ensure you have Java Runtime Environment (JRE) installed on your system
Restart VS Code after installation
Usage
Generating Class Diagrams
Open a .cls file in the editor
Generate a class diagram using one of these methods:
Press Ctrl+Alt+U
Right-click the file and select "Generate Class Diagram"
Right-click a folder containing .cls files and select "Generate Class Diagram"
Interactive Features
Click on diagram elements to:
Jump to class definitions
View property definitions
Navigate to method implementations
Support for diagram zooming and panning
Clear visualization of class relationships
Keyboard Shortcuts
Ctrl+Alt+U: Generate class diagram for the currently open .cls file
Extension Settings
This extension contributes the following commands:
intersystems-objectscript-class-diagram-view.generateClassDiagram: Generate a class diagram for the selected file or folder
Known Issues
External Library Navigation: Unable to navigate to intersystem objectscript library definitions through click interactions
Subclass Generation: Missing functionality to generate subclass diagrams for the current class
Large Project Performance:
Generating diagrams for large folders via right-click may experience significant delays
Generated webview/SVG for large projects lacks smooth zoom functionality and proper scaling
Please report any issues on the GitHub repository.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This extension is licensed under the MIT License.
Release Notes
0.0.1
Initial release of InterSystems ObjectScript Class Diagram View