-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Thoughts on VS Code plugin features / additions #53
Comments
How do people generally run fuel core? Is it typical to keep it running for a long time or to start it to test one thing (like one contract or script) and then kill/restart it? For the command pallet I'm thinking it'd make sense to have a command for starting fuel-core as a background process and another command for killing the background process. Alternatively, a single command like "Sway: Restart fuel-core" could do both. It seems like restarting fuel-core would be a common thing since you can only run a given contract through it once. Is there a use case where someone would want multiple processes of fuel-core running simultaneously? |
This makes sense; one way to go about this is to start implementing the most used CLI commands as command pallets. Another approach would be to implement the VSCode UI for all fo the commands available in the typescript SDK, with the assumption that eventually that SDK will offer everything that the According to the docs, these are the features currently implemented for the SDK:
Which of these would be most useful as part of the VSCode UI? |
There's generally two ways to run stuff: through For the first, the user will want a long-running instance of the If the plugin exposes For the SDK, |
What do you mean by simulation? Is there a way to mock a transaction? |
Yes, essentially run the transaction but don't persist its changes. |
Ah I knew I saw the functionality somewhere 😂! It's in an open PR: FuelLabs/sway#1845 |
Idea: embed the Fuel swaysap wallet in vscode to developers can deploy their contracts to a testnet (or any network) from vscode. They'd be able to see their funds and sign test transactions for contract deployment. The transaction builder could even be embedded in vscode. I'm doing some research to see what's feasible from a UX perspective. |
The SwaySwap wallet is meant as an insecure burner wallet. Handling key material in general is a sensitive operation. I'm more leaning towards integrating calling |
+1 Having a nice front-end as part of the VSCode plugin for |
Ganache's Truffle Suite has a really nice interface for visualizing and working with test wallets. Perhaps we could take some inspiration from that and translate it to a VS Code interface for the plugin? |
I recently came across this video describing the Truffle for VS Code functionality. There's also a write-up here that goes into a bit more depth.
There are some cool ideas in here that we could get inspiration from. Some things like debugging aren't currently possible although there is an issue open here that is tracking the development.
It seems like the general idea for us though is to offer a UI for allowing developers to still interact with
forc
but without needing to interact with the command line. One way to do this is by harnessing the command pallet, such as what has been starting in #52. Launchingfuel-core
and having it appear in the UI is interesting. Also being able to right-click on a script file and have a dialog box appear for running the script is also a cool idea.I'm sure there are many more cool features we could be looking to add. Just wanted to open an issue so we could start discussing what these could be.
The text was updated successfully, but these errors were encountered: