Skip to content

stainless-api/vscode-stainless

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stainless VSCode Extension

The official Visual Studio Code extension for working with Stainless SDK configurations. This extension provides intelligent code editing support, real-time diagnostics, and powerful navigation features for Stainless config files and OpenAPI specifications.

Workspace Setup

This extension works with Stainless workspaces. To set up a workspace, install the Stainless CLI and run:

stl init

This creates a .stainless/workspace.json file, which the extension uses to identify your Stainless workspace and provide language support for your configuration files.

Install the CLI with Homebrew (recommended for macOS):

brew tap stainless-api/tap
brew install stl

Or with Go:

go install 'github.com/stainless-api/stainless-api-cli/cmd/stl@latest'

Features

Real-time SDK diagnostics

Get instant feedback on your SDK configuration as you type. The language server analyzes your Stainless config and OpenAPI spec in real-time, surfacing errors, warnings, and suggestions directly in your editor so you can catch issues before running a build.

Diagnostics demo

“Go to definition” and “Find all references”

Navigate your API specification with ease using “Go to defintion” to jump directly to schema definitions, parameters, and response types from your Stainless config. Use “Find all references” to see everywhere a schema or endpoint is used across your config and spec files.

"Go to definition" demo

Intelligent completions in your Stainless config

Speed up editing your Stainless config with context-aware autocompletion. The language server suggests valid config options, endpoints, and schema names based on your OpenAPI spec.

Completion demo

Quick fixes and code actions

Resolve diagnostics with a single click using code actions. Some common diagnostics will have an “Autofix”, and all warning diagnostics can be easily ignored.

Quick fix demo

Codelenses for your OpenAPI spec

Codelenses show inline in your OpenAPI spec which schemas and endpoints are configured in your Stainless config. This makes it easy to see at a glance how your API is represented in your SDKs.

Codelenses demo

Live transformations

See the results of your Stainless transformations instantly as you edit your config. The language server automatically generates and updates your transformed OpenAPI spec in real-time.

Installation

Install the extension from the Visual Studio Code Marketplace, or search for "Stainless" in the Extensions view (Ctrl+Shift+X / Cmd+Shift+X).

VSCode Marketplace

Once installed, open a workspace containing Stainless configuration files. You can verify the extension is active by checking the status indicator in the bottom right corner of your editor.

Status bar demo

Feedback and Support

For questions, feedback, or issues, please reach out to [email protected] or contact your Stainless sales representative.

License

This VS Code extension is licensed under the MIT License. The Stainless Language Server is proprietary software, copyright © Stainless API, Inc.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published