Skip to content

Module output completion broken if 2+ modules have the same source #1107

Open
@radeksimko

Description

@radeksimko

Server Version

0.29.3

Client Version

2.24.3-darwin-arm64

Terraform Configuration Files

module "alpha" {
  source = "./submod"
}

module "beta" {
  source = "./submod"
}

output "name" {
  value = module. # completion HERE
}

Expected Behavior

Screenshot 2022-11-03 at 13 23 04

Actual Behavior

Screenshot 2022-11-03 at 13 26 22

Additional Context

There's a naive simple fix in https://github.com/hashicorp/terraform-schema/pull/158/files but that may have some other side effects in other contexts.

It's also related to #895

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions