MCPcopy Index your code
hub / github.com/FuelLabs/sway-vscode-plugin

github.com/FuelLabs/sway-vscode-plugin @0.3.6

Chat with this repo
repository ↗ · DeepWiki ↗ · release 0.3.6 ↗ · + Follow
83 symbols 182 edges 21 files 2 documented · 2%

Browse by type

Functions 60 Types & classes 23
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Sway VSCode Plugin

Visual Studio Marketplace Version discord

This extension provides LSP support for the Sway smart contract programming language.

Features

  • goto type definition
  • find all references
  • types and documentation on hover
  • inlay hints for types and parameter names
  • semantic syntax highlighting
  • symbol renaming
  • code actions
  • imports insertion

Coming Soon

  • code completion
  • apply suggestions from errors
  • workspace symbol search
  • ... and many more

Quick start

  1. Install the Fuel toolchain.
  2. Ensure forc-lsp is installed correctly by entering forc-lsp --version into your terminal.
  3. Install the Sway VSCode plugin.

Configuration

This extension provides configurations through VSCode's configuration settings. All configurations are under sway-lsp.*.

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Function 34
Method 26
Class 18
Interface 5

Languages

TypeScript100%

Modules by API surface

client/src/util/util.ts18 symbols
client/src/program.ts14 symbols
client/src/config.ts13 symbols
client/src/util/convert.ts8 symbols
client/src/palettes.ts5 symbols
client/src/main.ts4 symbols
client/src/status_bar/fuelCoreStatus.ts2 symbols
client/src/interface/visualize.ts2 symbols
client/src/interface/showAst.ts2 symbols
client/src/interface/onEnter.ts2 symbols
client/src/commands/peekLocations.ts2 symbols
client/src/client.ts2 symbols

For agents

$ claude mcp add sway-vscode-plugin \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page