1. OMP Studio
  2. Grenton and VS Code

Grenton and VS Code: an editor on the same engine

OMP Studio is not a VS Code extension, but it runs on Monaco, the same editor engine as VS Code, and you use it in your browser. On top of syntax highlighting, it knows your Grenton project.

VS Code or Visual Studio?

These are two different Microsoft programs that searches often mix up. Visual Studio Code (VS Code) is a lightweight code editor, and Visual Studio is a full development environment. For Grenton Lua scripts the comparison is with VS Code, because that is where the Monaco engine comes from. OMP Studio integrates with neither program.

What will feel familiar

  • The Monaco editor with tabs and dark and light themes.
  • Quick open with Cmd/Ctrl+P.
  • Go to a script's definition from a -> chain with Cmd-click.
  • Search across all project scripts, and a Problems panel.
  • Open tabs and unsaved edits that survive a page reload.

What a general Lua editor doesn't know about Grenton

CLU->Object->Feature is not standard Lua, so general Lua tools treat it as an error or don't understand it. OMP Studio builds an index from your project and from Object Manager's device catalog, so it suggests the objects, features, methods and enum values that match your CLUs' firmware.

CapabilityGeneral editor with LuaOMP Studio
-> chainsNot standard LuaHighlighting, autocomplete and checks
Object and feature namesDoesn't know your projectFrom the project index
Cross-CLU callsDoesn't know the semanticsFlags local variables that won't reach the target
The .omp fileAn archive you handle yourselfUnpacking, sync and a guarded save

The Grenton Lua guide describes the rules.

How to try it

  1. Open the demo: it runs in the browser on a sample project, with no installation.
  2. Try Cmd/Ctrl+P and go to definition, then type a typo in a -> chain to see the checks.
  3. To work on your own project, run npx @omp-studio/omps MyProject.omp next to the .omp file.

Changes from outside the editor

A file change made in the local working copy outside the browser isn't lost: the omps session commits it to the history, refreshes the project index and schedules a save to the .omp. Local AI agents rely on this mechanism. The working copy is the program's internal folder, though, so we don't recommend editing it in VS Code.

Common questions

Is there an OMP Studio extension for VS Code?

There is no such product to install. OMP Studio runs in the browser.

Do I have to install VS Code?

No. The editor opens in your browser. You need the local omps program and Object Manager.

Are the keyboard shortcuts the same as in VS Code?

The engine is the same, but this isn't full VS Code. VS Code extensions and settings don't apply here. The demo is the quickest way to try the editor.