The Sway toolchain consists of several components.
The Sway Language Server
forc-lsp is provided to expose features to IDEs. Installation instructions.
Note: There is no need to manually run
forc-lsp(the plugin will automatically start it), however both
forc-lspmust be in your
$PATH. To check if
forcis in your
forc --helpin your terminal.
A canonical formatter is provided with
forc-fmt. Installation instructions. It can be run manually with
The Visual Studio Code plugin will automatically format Sway files with
forc-fmt on save.
While not directly part of the Sway toolchain, an implementation of the Fuel protocol, Fuel Core, is provided. The Rust SDK will automatically start and stop an instance of the node during tests, so there is no need to manually run a node unless using Forc directly without the SDK.