Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autocompletion in array stops after first item #60

Closed
sylr opened this issue Feb 20, 2020 · 0 comments
Closed

Autocompletion in array stops after first item #60

sylr opened this issue Feb 20, 2020 · 0 comments

Comments

@sylr
Copy link

sylr commented Feb 20, 2020

Hi 👋

Given the following base:

resource "azurerm_network_security_group" "rabbitmq-nsg" {
  name                = "rabbitmq-nsg"
  resource_group_name = azurerm_resource_group.rabbitmq.name
  location            = azurerm_resource_group.rabbitmq.location
   security_rule {
    source_port_ranges           = []
  }
}

If you want to populate source_port_ranges with a var it autocompletes all right.

resource "azurerm_network_security_group" "rabbitmq-nsg" {
  name                = "rabbitmq-nsg"
  resource_group_name = azurerm_resource_group.rabbitmq.name
  location            = azurerm_resource_group.rabbitmq.location
   security_rule {
    source_port_ranges           = [var.myvar]
  }
}

But if you want to add another item to source_port_ranges it does not autocomplete anymore

resource "azurerm_network_security_group" "rabbitmq-nsg" {
  name                = "rabbitmq-nsg"
  resource_group_name = azurerm_resource_group.rabbitmq.name
  location            = azurerm_resource_group.rabbitmq.location
   security_rule {
    source_port_ranges           = [var.myvar, var.my...]
  }
}

I'm using terraform-lsp v0.0.10 and VS Code 1.42.1 on MacOS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant