zed-toolang
zed-toolang is the Zed editor extension for Toolang .too files. This page
shows what the extension is for, where it lives, and how to use it in Zed.
Extension 0.3.1 uses the matching Toolang grammar for agic, flow, and with.
GitHub: openhat-ai/zed-toolang
Use cases
Use this extension when editing Toolang source in Zed. It provides:
.toofile detection- syntax highlighting
#line comments- bracket pairing for
{},[], and() - indentation support
- outline support
The extension does not run Toolang programs or install the Toolang CLI. Use the
toolang command for running Toolang workflows.
Install from Zed
Open the Extension Gallery in Zed:
Zed > ExtensionsSearch for Toolang, install the extension, then open a .too file.
Install from source
For a development version, install the extension from its source repository.
Clone the extension:
git clone https://github.com/openhat-ai/zed-toolang.gitIn Zed, run the zed: install dev extension action and select the cloned
zed-toolang directory. Then open a .too file.
Verify
Create or open a file ending in .too:
with skill briceyan/review
agic review(_) -> Text:
instruct:
Review the supplied code and explain actionable findings.
user: {{_}}
flow check(_) -> Text:
run reviewThe file should be detected as Toolang and highlighted accordingly.
Troubleshooting
If Zed does not detect the file as Toolang, check that:
- the file name ends in
.too - the Toolang extension is installed and enabled
- Zed has been reloaded after installing the extension
- a different extension is not overriding the file association