Перейти к файлу
Heng Lu 7b9adb47f4
Update README.md
2022-01-10 09:45:56 +08:00
.github init 2022-01-05 10:57:25 +08:00
.vscode init 2022-01-05 10:57:25 +08:00
assets/icons init 2022-01-05 10:57:25 +08:00
build init 2022-01-05 10:57:25 +08:00
snippets init 2022-01-05 10:57:25 +08:00
src init 2022-01-05 10:57:25 +08:00
testFixture init 2022-01-05 10:57:25 +08:00
.editorconfig init 2022-01-05 10:57:25 +08:00
.eslintignore init 2022-01-05 10:57:25 +08:00
.eslintrc.json init 2022-01-05 10:57:25 +08:00
.gitattributes init 2022-01-05 10:57:25 +08:00
.gitignore init 2022-01-05 10:57:25 +08:00
.npmrc init 2022-01-05 10:57:25 +08:00
.nvmrc init 2022-01-05 10:57:25 +08:00
.prettierignore init 2022-01-05 10:57:25 +08:00
.prettierrc init 2022-01-05 10:57:25 +08:00
.vscodeignore init 2022-01-05 10:57:25 +08:00
CHANGELOG.md init 2022-01-05 10:57:25 +08:00
LICENSE init 2022-01-05 10:57:25 +08:00
README.md Update README.md 2022-01-10 09:45:56 +08:00
jest.config.js init 2022-01-05 10:57:25 +08:00
language-configuration.json init 2022-01-05 10:57:25 +08:00
package-lock.json init 2022-01-05 10:57:25 +08:00
package.json init 2022-01-05 10:57:25 +08:00
terraform.png init 2022-01-05 10:57:25 +08:00
tsconfig.json init 2022-01-05 10:57:25 +08:00

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 in azurerm-restapi resources
  • Completion when input body in azurerm-restapi resources, limitation: it only works when use jsonencode function to build the JSON
  • Show hint when hover on type, body and properties defined inside body
  • 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.

  1. Prerequisites: golang >1.16, node v14.x.x, npm > 6.0.0
  2. Clone Terraform azurerm-restapi Provider Language Server to local
  3. Run go install under project folder
  4. 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"
    },
  1. Clone this project to local
  2. Run npm install to download dependencies
  3. Run code . to open this project in VSCode
  4. 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.