7b9adb47f4 | ||
---|---|---|
.github | ||
.vscode | ||
assets/icons | ||
build | ||
snippets | ||
src | ||
testFixture | ||
.editorconfig | ||
.eslintignore | ||
.eslintrc.json | ||
.gitattributes | ||
.gitignore | ||
.npmrc | ||
.nvmrc | ||
.prettierignore | ||
.prettierrc | ||
.vscodeignore | ||
CHANGELOG.md | ||
LICENSE | ||
README.md | ||
jest.config.js | ||
language-configuration.json | ||
package-lock.json | ||
package.json | ||
terraform.png | ||
tsconfig.json |
README.md
Terraform azurerm-restapi Provider Visual Studio Code Extension
The Terraform azurerm-restapi Provider Visual Studio Code (VS Code) extension adds editing features like completion/hover/diagnositics for terraform-provider-azurerm-restapi Terraform files using the Terraform azurerm-restapi Provider Language Server.
Features
- Manages installation and updates of the Terraform azurerm-restapi Provider Language Server, exposing its features:
- Completion when input
type
inazurerm-restapi
resources - Completion when input
body
inazurerm-restapi
resources, limitation: it only works when usejsonencode
function to build the JSON - Show hint when hover on
type
,body
and properties defined insidebody
- Diagnostics to indicate schema errors as you type
Usage
The Terraform azurerm-restapi Provider Language Server hasn't been released, so it can only be tested in local for now.
- Prerequisites: golang >1.16, node v14.x.x, npm > 6.0.0
- Clone Terraform azurerm-restapi Provider Language Server to local
- Run
go install
under project folder - Add the following configuration to vscode setting file.
"azurerm-restapi.languageServer": {
"external": true,
"pathToBinary": "C:\\Users\\henglu\\go\\bin\\azurerm-restapi-lsp.exe", //file path to language server
"args": [
"serve"
],
"maxNumberOfProblems": 100,
"trace.server": "messages"
},
- Clone this project to local
- Run
npm install
to download dependencies - Run
code .
to open this project in VSCode - Press
F5
, it will open a new VSCode Window, you can test its features in it.
Configuration
This extension offers several configuration options. To modify these, navigate to the extension view within VS Code, select the settings cog and choose Extension settings, or alternatively, modify the .vscode/settings.json
file in the root of your working directory.
Telemetry
We use telemetry to send error reports to our team, so we can respond more effectively. If you want to disable this setting, add "telemetry.enableTelemetry": false
to your settings.json and that will turn off all telemetry in VSCode. You can also monitor what's being sent in your logs.
Release History
See the CHANGELOG for more information.