Skip to content

Getting Started

Sprocket provides an extension for the popular Visual Studio Code editor. You can access the published version of the extension in the Visual Studio Marketplace.

This extension has the following features:

  • Syntax highlighting using a complete and up-to-date TextMate grammar.
  • Code snippets for common constructs and conventions are included.
  • Document and workspace diagnostics courtesy of the language server protocol implementation provided by sprocket analyzer.

The source code for the extension is available to explore, modify, and build yourself at stjude-rust-labs/sprocket-vscode.

Installation

WARNING

The Sprocket Visual Studio Code extension is currently in very early development. As such, you currently have to download and install the latest version of the sprocket command line tool manually before running the extension. You may also experience various UX issues, such as needing to manually restart the Sprocket extension if it crashes. We plan to improve all of these things as we continue to iterate.

To use the Sprocket Visual Studio Code extension, you first need to install the sprocket command line tool. You can do so by executing these commands.

shell
# (1) Ensure Rust is installed by following the instructions at
#     https://rustup.rs.

# (2) Install the latest version of `sprocket` available.
cargo install --git https://github.com/stjude-rust-labs/sprocket

# (3) Make sure `sprocket` is accessible from the command line.
sprocket --version

Next, you can install the extension from the Extensions tab in Visual Studio Code (guide) or visit the extension's page in the Visual Studio Marketplace (link).

Known Issues

See the known issues section of the README.md for a list of known issues.