Currently it gets activated once you open a file with .sw
extension.
Prior to testing make sure you have forc
command exported as well.
git clone git@github.com:FuelLabs/sway-vscode-plugin.git
cd sway-vscode-plugin
npm i
npm run install-extension
- 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 likemain.sw
- which will activateforc lsp
.
- (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.