Provides support for the Smithy interface definition language.
- Syntax highlighting of
.smithyfiles - Snippets
- Completions, jump to definition, and more, powered by smithy-language-server
You can configure the extension using VSCode's settings. The following settings are supported:
| Setting | Description |
|---|---|
| smithy.maxNumberOfProblems | Controls the maximum number of problems produced by the server. Default: 100 |
| smithy.trace.server | Traces the communication between VS Code and smithy-language-server. Options: "off", "messages", "verbose"Default: "verbose" |
| smithy.server.executable | Executable to run smithy-language-server, instead of the one managed by the extension. Can be the executable name if it is on your PATH, or an absolute path to the executable. If null, the extension will download it.Default: null |
| smithy.server.javaHome | Path to a Java installation (the directory containing bin/java) to run smithy-language-server with, instead of the Java runtime included in the download. Requires Java 21 or later. JVM options in the JAVA_OPTS and SMITHY_LANGUAGE_SERVER_OPTS environment variables currently aren't applied; use JDK_JAVA_OPTIONS instead. Can only be set in user or remote settings. In a remote window, set it in remote settings. Ignored if smithy.server.executable is provided.Default: null |
| smithy.server.version | Version of smithy-language-server to use: latest.release, or a version such as 0.9.0. Must be 0.4.0 or later. Ignored if smithy.server.executable is provided. |
| smithy.server.diagnostics.minimumSeverity | Minimum severity of Smithy validation events to display in the editor. Options: "NOTE", "WARNING", "DANGER", "ERROR"Default: "WARNING" |
You can install the extension from the VS Code Extension Marketplace, or from source.
To install from source, first clone the repo:
git clone https://github.com/smithy-lang/smithy-vscode.git
cd smithy-vscodeInstall the extension's dependencies:
npm installInstall the extension:
npm run install-pluginThis will overwrite any existing installation of the extension with the locally built one.
This project is licensed under the Apache-2.0 License.