Cfn Lsp Extra
Project description
Cfn Lsp Extra
An experimental cloudformation lsp server built on top of cfn-lint aiming to provide hovering, completion, etc. YAML and JSON are supported, though YAML has more features currently implemented (for example snippets) and will give a better experience. Trust me.
Features
Method | Status |
---|---|
textDocument/hover |
Done for resources, resource properties, subproperties and !Ref s. TODO !GetAtt s, intrinsic functions. |
textDocument/completion |
Done for resources, resource properties, subproperties, refs and intrinsic functions. TODO !GetAtt . |
textDocument/definition |
Done for !Ref s. TODO mappings. |
textDocument/publishDiagnostics |
Done through cfnlint . |
Installation
First install the executable, pipx
is recommended, but you can use pip
instead if you like to live dangerously:
pipx install cfn-lsp-extra
Or get the bleeding edge from source:
pipx install git+https://github.com/laurencewarne/cfn-lsp-extra.git@$(git ls-remote git@github.com:laurencewarne/cfn-lsp-extra.git | head -1 | cut -f1)
Updating:
pipx upgrade cfn-lsp-extra
Emacs
Install the lsp-cfn.el package.
Patches detailing integration steps for other editors are very welcome 🙏
Alternatives
vscode-cfn-lint
cfn-lint
Note this is used by cfn-lsp-extra
under the hood to generate diagnostics. One difference with cfn-lsp-extra
is that diagnostics will be refreshed every time you make a change to the document, in other words you don't need to save the file.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for cfn_lsp_extra-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6afc0f0b76b5f71b579fbf85d5f2069bf789058ef058d3f0f3fbc2c980f9ead |
|
MD5 | 82ee79026ab49cf12fa019041e660c0e |
|
BLAKE2b-256 | 2e19ff90cc606ea38025a32d457ab89048386a0c0a314e8ecb0380c95fa14ca4 |