Skip to content

ChouChiu/Levitate-Extension

Levitate Extension

English | 中文

VSCode extension for the Levitate DSL, providing syntax highlighting and language server support.

Features

  • Syntax Highlighting — TextMate grammar with keywords, subcommands, variables, expressions, strings
  • Auto Completion — Smart suggestions for keywords, subcommands, and variable references
  • Hover Documentation — View keyword signatures and descriptions on hover
  • Document Symbols — Outline view showing var, run, import, check and more
  • Diagnostics — Unknown keyword warnings, REPL-only errors, unclosed syntax detection

Installation

From VSIX

# VS Code
code --install-extension levitate-extension-1.0.0.vsix
# VS Code Insiders
code-insiders --install-extension levitate-extension-1.0.0.vsix

Syntax Overview

# Comment
var outputDir "./build"
import shulker.magick
copy "%project.src%" "^outputDir%" true
verm sminor
echo "Building version %project.ver%..."
check {env get enablePkg} pkgr zip make "^outputDir%" "./release.zip"

Variable System

Type Declaration Reference
Local var name value ^name^
Environment env set name value %name%
Expression {method args}

Built-in Environment Variables

Variable Description
%project.src% Project source directory
%project.name% Project name
%project.output% Project output directory
%project.ver% Current version string
%project.cache% Project cache directory

For more information, please visit https://docs.lipoly.ink/ShulkerRDK/quickGuides/ (available in Simplified Chinese only)

Configuration

Setting Default Description
levitate.trace.server off Language server communication trace
levitate.maxNumberOfProblems 100 Maximum number of diagnostics

Related Projects

Contributing

See CONTRIBUTING.md for guidelines on how to contribute.

Code of Conduct

This project follows the Contributor Covenant Code of Conduct.

License

Code: MIT · Icons under assets/: All Rights Reserved by LiPolymer.

Acknowledgments

Thanks to LiPolymer, the author of ShulkerRDK and icon.

About

A VSCode extension created for Levitate DSL, featuring syntax highlighting and a language server

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors