mrj README
MrJ Extension is a language extension for MrJ rule language
Features
In this working version, there are the following features:
- Syntax highlighting
- Folding (side effects: until now it works only when there are indented rules)
- Variable check and cross reference
- Code completion (variables and logic)
- Snippets
- Diagnostics (error and warning checking)
- Rule testing via REST API
- Synonym search and navigation
Completion & Diagnostics
- Provides completion for variable definitions and usages.
- Checks for errors and warnings in real-time.
Commands
mrj: go to rule number: Jump to specific rule.
mrj: check for errors and warnings: Manual trigger for validation.
mrj: find synonyms: Search synonyms for selected text (requires server connection).
mrj: find children of synset: Explore synset hierarchy.
mrj: test execute selected tests on rule: Run tests embedded in the rule file.
Configuration
You can configure the URLs for the backend services in VS Code settings under MrJ Completion:
mrj.testURL: URL to call to test rules.
mrj.synURL: URL to find synonyms.
mrj.synChildrenURL: URL to find synset children.
testIntentsURL: URL to test intents.
Release Notes
0.1.2
- Performance Optimization: Refactored core analysis engine to be fully asynchronous. File system operations no longer block the UI thread, ensuring a smooth typing experience even in large workspaces.
- Smart Activation: The extension now intelligently sleeps when working on non-MRJ files, drastically reducing CPU and memory overhead.
- Improved Stability: Enhanced status bar management and debounced text analysis to prevent redundant processing during rapid typing.
- Asynchronous Java Parsing: Java method discovery now runs in the background, keeping VS Code responsive.
0.1.1
Multi-file variable cross reference + improved check speed + method completion
0.0.19 (Merged Version)
- Merged
mrj and mrjcompletion into a single extension.
- Combined all features: syntax highlighting, completion, diagnostics, and testing.
Previous Releases (mrj)
0.0.4
Improved highlight for possibly not tagged NER Entities
0.0.3
Added highlight for possibly not tagged NER Entities
0.0.2
Added standard theme
0.0.1
Initial release with simple syntax highlight
Previous Releases (mrjcompletion)
0.0.18
Fixed bugs
0.0.16
Synonyms search and tree view.
0.0.14
Load variables from commonVars.txt
0.0.10 - 0.0.13
Tagging features (Tag All, Tag CAT)
0.0.4 - 0.0.9
Diagnostics, Gutter icons for tests, Test execution via REST