Skip to content

msarson/Clarion-Extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Clarion Extension for Visual Studio Code

Version Installs

Comprehensive Clarion language support for Visual Studio Code with solution management, code navigation, IntelliSense, diagnostics, and build integration.

Quick Links

πŸ“š Full Features List | πŸš€ Getting Started Guide | πŸ“– Cheat Sheet | πŸ› Report Issues


Overview

The Clarion Extension provides professional-grade support for Clarion development in Visual Studio Code, featuring:

  • βœ… Complete language support - Syntax highlighting, IntelliSense, and code navigation
  • βœ… Solution management - Native Clarion solution explorer with project navigation
  • βœ… Real-time diagnostics - Catch errors as you type
  • βœ… Build integration - Generate applications with ClarionCl.exe
  • βœ… Smart navigation - Go to definition, find implementations, method overload support
  • βœ… Modern workflow - Folder-based, no workspace files needed

New in v0.7.0: Includes all syntax highlighting previously provided by the Fushnisoft extension - no separate installation needed!


Quick Start

Installation

  1. Open VS Code
  2. Press Ctrl+Shift+X to open Extensions
  3. Search for Clarion Extensions
  4. Click Install

Open Your First Solution

Simple as opening a folder:

  1. Click File β†’ Open Folder (or press Ctrl+K Ctrl+O)
  2. Select the folder containing your .sln file
  3. The extension automatically detects and opens the solution!

Settings are saved in .vscode/settings.json within the folder - commit them with your solution for team sharing.

Need more details? See the Getting Started Guide.


Key Features

Solution Management

  • Navigate projects and files in dedicated Clarion Tools sidebar
  • Recent solutions - Quick access to your last 20 solutions
  • Auto-detection - No workspace files or complex setup needed
  • Team-friendly - Settings stored with solution, not in workspace files

Code Intelligence

  • Go to Definition (F12) - Navigate to includes, modules, methods
  • Method overload support - Correctly resolves overloaded methods based on parameters
  • Hover tooltips - Preview file contents, method signatures
  • Structure view - Complete code outline with follow cursor

Diagnostics & Validation

  • Real-time error detection - Unterminated structures, missing RETURN statements
  • FILE validation - Checks for required DRIVER and RECORD
  • CASE/EXECUTE validation - Proper clause usage
  • OMIT/COMPILE blocks - Validates directive termination

Build & Generation

  • Generate applications - Right-click to generate from Solution View
  • Live output - Watch generation progress in real-time
  • Build configurations - Switch between Release and Debug
  • Smart path resolution - Auto-detects Clarion installation

See all features: Full Features Documentation


What's New

Version 0.7.4 (Dec 2024)

πŸ”§ Improved Stability & Performance

  • Major codebase refactoring - 82% reduction in main extension file (975β†’175 lines)
  • Enhanced reliability - Fixed multiple validation edge cases
  • Better organization - Modular architecture for easier maintenance

πŸ› Key Bug Fixes

  • IF statement validation - Single-line IF...THEN no longer triggers false errors (#24)
  • FILE validation - Correctly handles COMPILE/OMIT conditional blocks (#23)
  • Build reporting - Fixed false "Build Failed" messages on successful builds
  • Structure view - Now follows cursor correctly on startup
  • ROUTINE parsing - Improved recognition in all contexts

Version 0.7.3 (Dec 2024)

πŸš€ Folder-Based Workflow

  • No more workspace files - Just open folder containing solution
  • Settings with solution - All settings in .vscode/settings.json
  • Recent solutions - Global history with one-click reopening
  • Team friendly - Commit settings with your solution

⚠️ Breaking Changes

If upgrading from v0.7.2 or earlier:

  • Workspace files no longer required - The extension now uses a folder-based workflow
  • Settings migration - Settings automatically migrate from .code-workspace to .vscode/settings.json when you open a folder
  • No action needed - Just use File β†’ Open Folder instead of opening workspace files
  • Old workspace files still work - But the new folder-based approach is simpler

Recommendation: Switch to folder-based workflow by opening the solution folder directly rather than using workspace files.

πŸ› Bug Fixes

  • Fixed build error diagnostics now properly link to source files
  • Fixed global solution history tracking

Version 0.7.1 (Nov 2024)

⚑ Performance Improvements

  • Caching system - Eliminated 1.5s delay on every keystroke in large files
  • Smooth editing - No more freezing while typing in 14K+ line files
  • Optimized tokenization - Reduced duplicate processing

🎯 Enhanced Features

  • ClarionCl.exe integration - Generate applications from Solution View
  • Enhanced diagnostics - RETURN statement validation, structure checking
  • Method overload support - Accurate navigation and hover for overloaded methods

Full changelog: CHANGELOG.md


Dedication - Version 0.7.0

This release is dedicated to the memory of Brahn Partridge (4th January 1977 – 29th October 2021)

Brahn, known in the community as Fushnisoft, created the original Clarion language support for VS Code through his fushnisoft.clarion extension. His work provided the foundation for syntax highlighting and language features that so many Clarion developers relied upon.

Following Brahn's passing in October 2021, his extension could no longer be maintained or updated. The Clarion community has continued to evolve, and developers needed ongoing support for new VS Code features and improvements.

In v0.7.0, we have respectfully integrated Brahn's TextMate grammar and language configuration into Clarion Extensions. This integration:

  • Preserves his legacy: His excellent work continues to serve the community
  • Enables future updates: The language support can now evolve with VS Code and Clarion
  • Simplifies installation: Developers need only one extension
  • Honors his contribution: Full attribution is maintained in our LICENSE and documentation

Brahn's contributions to the Clarion developer community will not be forgotten. Thank you, Brahn, for your dedication to making Clarion development better for everyone.

Rest in peace, friend.


Contributing

This is an active project looking for contributors!

This extension is under active development and we need your help! Whether you are a Clarion developer, a VS Code enthusiast, or just interested in open-source projects, your contributions, bug reports, and feedback are welcome.

  • πŸ› Report bugs or request features: GitHub Issues
  • πŸ’‘ Contribute code: Fork the repository and submit pull requests
  • πŸ“– Improve documentation: Help make the docs clearer
  • ⭐ Star the project: Show your support on GitHub

Additional Resources

Documentation

Links


License

This extension is released under the MIT License. See LICENSE for details.

Includes TextMate grammar originally created by Brahn Partridge (Fushnisoft), used with respect and full attribution.


Happy Clarion coding! πŸŽ‰

About

VS Code Extension for Clarion

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •