This package is a Visual Studio Code extension to recognize and highlight the Smithy interface definition language (IDL). It can also be used as a TextMate bundle in TextMate and IntelliJ using a third-party plugin.
This extension provides basic syntax highlighting of ".smithy" files.
Additionally, it provides Snippets.
This extension can be installed from the VS Code Extension Marketplace.
To install from source, follow these steps:
- Clone the repository:
git clone https://github.com/awslabs/smithy-vscode.git && cd smithy-vscode
- Run npm commands to install:
npm install && npm run install-plugin
If your model requires dependencies, add a smithy-build.json
file to the root of your project, specifying Maven dependencies, along with the
repositories where they can be located.
{
{
"maven": {
"dependencies": ["software.amazon.smithy:smithy-aws-traits:1.19.0"],
"repositories": [{ "url": "https://repo1.maven.org/maven2/" }]
}
}
}
Start authoring your Smithy model. Opening a *.smithy
file will activate
the extension.
You can use this extension for syntax highlighting in IntelliJ by installing the "TextMate bundle support" plugin and registering this repository as a bundle. See the IntelliJ documentation for more details.
- Updated to work with Smithy 2.0 syntax.
- Use Smithy Language Server for language features including: auto-completion, jump to definition, model validations as diagnostics. #32
- Added
Smithy:Selector:Run
andSmithy:Selector:Clear
commands for highlighting the results of running an expression on the model in a workspace. #33
- Updated to work with Smithy 1.0 syntax.
- Add support for use statements.
- Add support for documentation comments.
Initial release for Smithy IDL syntax highlighting.