open-standards/wai/tools/wai-quantum-editor/editors/extension/extension.toml
Transaction Science 18d485bfa8 wai/tools/wai-quantum-editor: the editor extension, and configurations for other editors
The extension highlights OpenQASM (a TextMate grammar) and starts
`wai-quantum lsp` (path, extra arguments, generator inputs and shots in
its settings). Its lenses and palette commands run Run, Plan, Critique,
Shortcuts and Receipt through the server, and each answer goes to an
output panel; a receipt can be saved as JSON. When the command line is
missing it says so, with the install commands of the command line's
README, and offers the setting for its path. It builds to one bundled
file and packages to a .vsix with the pinned packaging tool; it is not
published.

editors/ holds a configuration for three kinds of editor: one configured
in Lua (the server through the built-in configuration or the lspconfig
plugin, the grammar through the tree-sitter plugin, and a command for each
of the server's commands), one configured by languages.toml (the server,
the formatter and the grammar, with its queries in that editor's capture
names), and one with WebAssembly extensions described by extension.toml (a
small extension that finds and starts the server, built for
wasm32-wasip2; every locked crate is at least two weeks old).

test/check.mjs (79 checks) holds the manifest to the server's commands,
the highlighting token by token, the missing-binary message to the
README, every configuration to its syntax and to the server and the
grammar, the query copies to the grammar's, and the package to exactly
the extension's files.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-27 19:51:34 -04:00

20 lines
907 B
TOML

# OpenQASM for an editor with extensions described by extension.toml: the
# tree-sitter grammar for highlighting, and `wai-quantum lsp` for the rest.
# Install it as a development extension from this directory. `rev` names a
# branch here; pin it to a commit for a build that never moves.
id = "wai-quantum"
name = "WAI Quantum"
version = "0.1.0"
schema_version = 1
authors = ["Transaction Science"]
description = "OpenQASM with the WAI Quantum engine: its diagnostics, completion, hover with each gate's matrix and cost, renames, formatting, and Run, Plan, Critique, Shortcuts and Receipt"
repository = "https://git.transaction.science/Transaction-Science/open-standards"
[grammars.openqasm]
repository = "https://git.transaction.science/Transaction-Science/open-standards"
rev = "main"
path = "wai/tools/tree-sitter-openqasm"
[language_servers.wai-quantum]
name = "wai-quantum"
languages = ["OpenQASM"]