Serverless Framework integration for VS Code
This extension enables an integration of Serverless projects with VSCode. It eliminates the need to start Serverless commands from a separate command line.
In order to install an extension you need to open the extension palette and search for serverless-vscode. You can then install it.
This is currently an alpha version, that integrates only a subset of possible commands. See the GitHub repository for remaining planned features for the final version. You're encouraged to test the version and create additional feature requests.
Currently the extension only supports Serverless projects with Serverless installed locally!
That means, that Serverless must be a development dependency of the project itself. A subsequent version of the extension will also support the globally installed Serverless framework and a configuration for that.
The extension supports user and workspace configuration. To access the configuration settings,
The following configuration settings are available:
When set to false (the default), the extension will not ask for the region to deploy to but use the
one, set as
The defult stage that is assumed, if you just press ENTER in the stage input field when executing a command.
The defult region that is assumed, if you just press ENTER in the stage input field when executing a command. See also
The Serverless outline
As soon as you have added a Serverless project to your workspace, you can select the
Top container objects
Each of the top hives has a context menu that lets you invoke service/project related functions.
Package will ask for the stage and optionally region and packages the service with
Package will ask for the stage and optionally region and deploys the service with
Variable resolution (Resolve)
Resolve allows you to show a generated
The functions hive lets you analyze your service function-wise and contains a node for each function. Each function then contains a list of all defined HTTP endpoints in the function definition.
All function related commands of the extension can be called via the context menu of the function.
Deploys the selected function with
Invoke the selected function locally. The command lets you select an
Retrieve and show the online logs of the deployed function in the output pane.
Open the handler source file that is associated with the function.
The API hive shows the combined API that will eventually be deployed to API Gateway.
See the CHANGELOG.md file.