
Magnificent Language for VS Code
This extension adds first-party editor support for Magnificent Language (.mgl) files.
Extension icon asset: mgl-extension-icon.png
Features
.mgl file association
- Syntax highlighting for keywords, declarations, comments, strings, numbers, and calls
- Snippets for common language constructs
- Bracket, quote, and comment configuration
- Command Palette actions:
MGL: Run Current File
MGL: Open REPL
MGL: Initialize Project
MGL: Insert Main Template
MGL: Insert Import Statement
Commands
The extension uses the existing MGL CLI.
When you run it inside this repository, it automatically falls back to the local bin/mgl runner. If you want to override that, set a custom CLI path:
Set the CLI path in VS Code settings if needed:
{
"magnificentLanguage.cliPath": "mgl"
}
Local Development
If you open the repository root in VS Code:
- Press
F5.
- Choose
Run MGL VS Code Extension.
- A new Extension Development Host window will open with the repo workspace.
If you open only mgl-extension in VS Code:
- Press
F5.
- Choose
Run MGL Extension.
Then open any .mgl file in the development host and run MGL: Run Current File from the Command Palette.
Included Snippets
func
class
method
if
ife
elif
loop
loops
import
array
print
main
module
Packaging
This subproject is ready for packaging with vsce.
Package it with:
cd mgl-extension
npx @vscode/vsce package
For full release steps, see the GitHub release guide.