Skip to content

About

A Visual Studio Code extension to provide syntax highlighting for the Smithy IDL.

Resources

Code of conduct

Contributing

Security policy

Stars

43 stars

Watchers

5 watching

Forks

Smithy for VS Code

Provides support for the Smithy interface definition language.

Open VSX Install on VS Code Install in Kiro

Features

  • Syntax highlighting of .smithy files
  • Snippets
  • Completions, jump to definition, and more, powered by smithy-language-server

Configuration

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"

Installation

You can install the extension from the VS Code Extension Marketplace, or from source.

Build from source

To install from source, first clone the repo:

git clone https://github.com/smithy-lang/smithy-vscode.git
cd smithy-vscode

Install the extension's dependencies:

npm install

Install the extension:

npm run install-plugin

This will overwrite any existing installation of the extension with the locally built one.

License

This project is licensed under the Apache-2.0 License.

About

A Visual Studio Code extension to provide syntax highlighting for the Smithy IDL.

Resources

Code of conduct

Contributing

Security policy

Stars

43 stars

Watchers

5 watching

Forks

Releases

Packages

Used by

Contributors

Languages