Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 1.6 KB

README.md

File metadata and controls

34 lines (23 loc) · 1.6 KB

Sway Visual Studio Code Plugin

Visual Studio Marketplace Version discord

When does the plugin get activated?

Currently it gets activated once you open a file with .sw extension.

Testing

Prior to testing make sure you have forc command exported as well.

Testing as a real installed extension

git clone git@github.com:FuelLabs/sway-vscode-plugin.git
cd sway-vscode-plugin
npm i
npm run install-extension

Testing in Debug mode

  • In order to start the Debug mode, open vscode-plugin in Visual Studio Code, make sure that it is opened as root/main workspace - in order to avoid any problems.
  • Make sure that in Run and Debug Tab that "Launch Client" is selected - press F5 and new Visual Studio Code Debug Window will be opened.
  • Within that Window open a .sw file like main.sw - which will activate forc lsp.

Testing in Debug mode with the attached Server

  • (This is only needed if you are developing the Server.)
  • Install this extension -> CodeLLDB
  • Repeat the steps outlined in "Testing in Debug mode", then go back Run and Debug Tab, from the dropdown menu choose "Sway Server" which will attach the server in the debug mode as well.