FastEdge VSCode ExtensionThis is a VS Code extension which enables the running of Gcore/FastEdge binaries via the debug interface within the VS Code editor. At present this Extension supports both Rust and Javascript. ![]() ![]() How it worksUnder the hood this extension compiles your code into a wasm binary using the associated language's build tools: The specific SDK's can be found here: FastEdge-sdk-rust Having completed compilation it then serves the running application at http://localhost:8181 This is done using our application runner based from FastEdge-cli. Note To view which version of the FastEdge-cli your extension is using.
PrerequisitesIn order for this extension to compile and run any code, you will need to have the basic compilation tools installed for your given language. Examples:
More detail can be found in the SDK documentation above. 👆 Installing the extensionThis extension can be installed from the Visual Studio Marketplace. FastEdge Launcher It is also possible to install from source: Releases Running your first applicationHaving previously installed the extension you are now able to configure and run a given project by simply pressing Alternatively you can use the Command Palette (Ctrl+Shift+P): When running this for the first time in any project, you will want to create a Example:
The easiest way to do this is to let the extension create it for you, from the default settings provided by the extension. Simply run Command Palette (Ctrl+Shift+P): This will create the When running CommandsThis extension also provides two commands within the Command Palette (Ctrl+Shift+P)
These behave slightly differently given the specific language and build tools. Rust
Both these commands will use the associated Javascript
As the javascript build tool |