MISPL Language Support for Visual Studio Code
MISPL (MIPS Scripting Language) is a powerful scripting language used to customize and extend the Clinisys GLIMS Laboratory Information System. This extension brings modern IDE features to VS Code, making MISPL development faster, cleaner, and less prone to errors.
✨ Key Features & Tools🧠 Intelligent Coding & NavigationWrite code faster with smart suggestions, context-aware hovers, and instant error detection. 🔍 Hover, Linting & Quick FixesHovering over a variable shows its type, its last assignment, and how many times it is present. In the Problems window, Errors, Warnings, and Style-tips are shown. Using the right mouse menu (or the Quick Fix lightbulb) shows an automatic quick fix in many cases.
💡 IntelliSense (Snippets)Hover over any standard GLIMS function (e.g., AddLogEntry) to instantly view parameter requirements and documentation. Use smart autocomplete snippets to build complex blocks in seconds.
🗺️ Code-Map (Outline)Navigate complex scripts easily with the Outline panel. View declared variables by type and jump directly to specific IF and WHILE blocks.
🛠️ Refactoring & FormattingKeep your codebase clean, readable, and perfectly structured with automated tools. 🧹 Remove Unused VariablesAutomatically scans your declarations and surgically removes variables that are never used in the script.
📏 Align AssignmentsSelect a block of code and align all := operators vertically for maximum readability.
📦 Wrap in BlockInstantly wrap selected lines of code in an IF, WHILE, or REPEAT block with proper indentation (Shortcut: Ctrl+Alt+W).
✂️ Extract to VariableSelect a complex expression, right-click, and extract it to automatically declare and assign a new variable at the top of your script.
📝 Format, Compact & MinifyFormat your code perfectly, remove redundant whitespace, or aggressively minify your script to stay under the GLIMS 31,000-character limit. ![]() ![]()
⚙️ Extension SettingsUse ⚙️ View Settings Panel
🧪 Batch Testing (Mass Validation)Taking over a database with thousands of legacy MISPL scripts is challenging. This extension includes Batch Test Tools to validate your entire GLIMS environment at once. 📊 See Batch Validation in actionUsage: 1. Export your MISPL table ( gp_SiteFunction) from GLIMS as a .csv file.2. Open the Folder ".\mispl\batchTest" in VS Code. 3. Run the Batch tool via Node.js in the Terminal.4. Use runBatchToExcel.js for an Excel overview of all Errors, Warnings, and Style Tips, batchTest.js for Errors only, and unitTest.js to test the Linter.5. The engine parses thousands of scripts in seconds and produces a comprehensive report of all fatal crashes and syntax errors.
👣 Runtime Validation (Breadcrumbs)Troubleshooting production code is difficult. The Validation Flow feature solves this by automatically injecting trace code into your script. 🕵️♂️ Coverage Analysis (Dead-Code Detection)1. Inject: The tool safely injects tracking codes ( _sV) at every logical crossroad.2. Execute: Run the script in GLIMS. The breadcrumb trail is written to the GLIMS log. 3. Analyze: Copy the log string to VS Code and run the analysis. A Markdown report will show you exactly which paths were executed and which were skipped.
🌳 Flowcharts & AST VisualizationsTransform your code into visual logic to simplify complex scripts for documentation or consultation. 🔀 Interactive FlowchartsGenerate interactive Mermaid.js flowcharts for your script. Click on any block in the diagram to instantly jump to the corresponding line of code in your editor.
🌲 Print AST (Abstract Syntax Tree)Convert your MISPL script into a clean, hierarchical tree structure that reveals how the parser interprets the logic.
🕹️ Command OverviewAll tools are quickly accessible via the Command Palette (
📦 Installation
🐞 Reporting IssuesHelp improve the engine! If you encounter an incorrect linting error or a specific edge case in GLIMS:
|

