@serverless-ide/client
v0.1.3
Published
Serverless IDE autocomplete plugin with AWS SAM support
Downloads
2
Maintainers
Readme
Serverless IDE: Enahnced support of AWS SAM in Visual Studio Code
Provides comprehensive AWS SAM (Serverless Application Model) and Cloudformation support to Visual Studio Code.
Features
- Validation:
- Detects whether the entire file is valid SAM template
- Detects errors such as:
- Node is not found
- Node has an invalid key node type
- Node has an invalid type
- Node is not a valid child node
- Auto completion (Ctrl + Space):
- Auto completes on all commands
- Scalar nodes autocomplete to schema's defaults if they exist
- Formatter:
- Allows for formatting the current file
Settings
The following settings are supported:
serverlessIDE.provider
: Provider (default to aws-sam)serverlessIDE.templatePattern
: Pattern for config file name (default to*.sam.yaml
)serverlessIDE.validate
: Enable/disable validation featureserverlessIDE.hover
: Enable/disable hoverserverlessIDE.completion
: Enable/disable autocompletion[yaml]
: VSCode-YAML adds default configuration for all yaml files. More specifically it converts tabs to spaces to ensure valid yaml, sets the tab size, and allows live typing autocompletion. These settings can be modified via the corresponding settings inside the[yaml]
section in the settings:editor.insertSpaces
editor.tabSize
editor.quickSuggestions
Contributions
All contributions are welcome!
Getting started
- Install prerequisites:
- latest Visual Studio Code
- Node.js v10.9.0 or higher
- Fork and clone this repository
- Install lerna and dependencies
yarn global add lerna
lerna bootstrap
- Compile Typescript
lerna compile
Developing the client side
- Open
packages/client
in vscode - Make changes as neccessary and the run the code using
Launch Extension
command (F5)
Developing the server side
- Open
packages/server
in vscode
Refer to VS Code documentation on how to run and debug the extension
Update SAM json schema
- Open
packages/sam-schema
- Make changes and run
yarn generate
to update schema - Check changes with
Launch Extension
command
Installation from Github Release
To obtain and install the latest release from github you can:
- First download the latest *.vsix file from Github Releases section
- Inside of VSCode navigate to the extension tab and click the three elipses (...).
- Click install from VSIX and provide the location of the *.vsix that was downloaded
License
MIT