Docs/Advanced

Advanced

Editor and tooling

Set up the official VS Code extension, language server and diagnostics.

About 8 minVersion: 0.10.1

VS Code extension

The official extension recognizes .orvi files, supplies the file icon, syntax and semantic highlighting, diagnostics, completion, hover help, symbols, definitions, references, rename and formatting.

  • Install the release VSIX from the download page.
  • Keep orvi-lsp next to the CLI or on PATH.
  • Set orviscript.server.path only for a custom language server location.

One language frontend

The extension does not implement another parser. It talks to the Rust language server, which shares syntax, semantic analysis, standard-library signatures and formatting with the CLI.

Contextual diagnostics

Foreign syntax such as JavaScript function declarations can produce an OrviScript diagnostic and an explicit Quick Fix. Source is never silently rewritten during run, check or fmt.

orviscript diagnostics hash
orviscript diagnostics export diagnostic-rules.compiled.json