Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Mårran Language SupportNew to Visual Studio Code? Get it now.
Mårran Language Support

Mårran Language Support

Fancryer

|
2 installs
| (0) | Free
Mårran syntax highlighting and a language server client (marran lsp): diagnostics, hover, go to definition, references, rename, code actions, completion and document symbols.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Mårran Language Support

Editor support for Mårran: syntax highlighting for .marr files and a client for the marran lsp language server.

Features

  • Syntax highlighting for modules, declarations, effects, rows, enums, patterns, comments, strings, numbers and built-in types.
  • Diagnostics for the open document and the files it imports.
  • Hover with the inferred type.
  • Go to definition for resolved names.
  • References to a name, and rename of a value or type, across the whole checked program.
  • Code actions for an undefined name: the did-you-mean replacement and an import of a name another module publishes.
  • Completion for declarations and built-ins.
  • Document symbols for top-level declarations.

Semantic tokens (LSP semantic highlighting) are not implemented yet; the colours come from the TextMate grammar.

Requirements

The language server is part of the Mårran compiler, not of this extension. Install marran-exe and make sure it provides the lsp command:

marran-exe lsp

If marran-exe is not on PATH, set its absolute path in marr.serverExecutable.

Settings

Setting Default Meaning
marr.serverExecutable marran-exe the executable that provides lsp
marr.serverArguments ["lsp"] arguments passed to it

The first workspace folder is the server's project root, so marr.av and the bundled modules are resolved from there.

Building

Node.js 22 or newer is required by the current @vscode/vsce.

cd editors/vscode
npm install
npm run package

This writes a .vsix file.

Publishing

Marketplace personal access tokens are retired on 1 December 2026. This extension publishes through Trusted Publishing: GitHub Actions exchanges a short-lived OpenID Connect token for a Marketplace session, so no long-lived secret is stored.

The workflow is .github/workflows/publish-vscode.yml. Configure the policy once on the publisher management page:

  • open the Fancryer publisher and select Trusted Publishing;
  • create a policy with repository owner Fancryer, repository Marran, workflow publish-vscode.yml, and an empty environment.

Then tag the release commit whose editors/vscode/package.json version is 0.1.1:

git tag vscode-v0.1.1
git push origin vscode-v0.1.1

The tag starts the workflow, which verifies the tag against package.json, installs the locked dependencies, and runs vsce publish --oidc. The workflow can also be started from the Actions tab after it reaches the default branch.

Alternatively, npm run package writes a .vsix file that you can upload through New extension or Update on the publisher management page. This needs no token at all and is the quickest way to publish the first version.

Development

Run npm install once, then npm run build. The extension entry point is the bundled dist/extension.js, and npm run package rebuilds it through the vscode:prepublish script.

Open this directory in VS Code and press F5 to start an Extension Development Host. Open the project folder in the new window and set marr.serverExecutable if the executable is not on PATH.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft