Skip to content

Symlinked folder path is treated as duplicate #1175

Open
@radeksimko

Description

@radeksimko

Server Version

v0.31.1

Terraform Version

Terraform v1.3.7
on darwin_arm64

Client Version

VS Code 1.75.1
HashiCorp Terraform extension v2.25.2

Terraform Configuration Files

submodule/main.tf

variable "test" {
  type = string
}

main.tf

module "test" {
  source = ""
}

Log Output

Expected Behavior

Single completion candidate pointing to ./submodule

Actual Behavior

Two completion candidates with "duplicate" part of the path (i.e. LS not realising there's symlink in the path)

Screenshot 2023-02-13 at 14 31 35

Steps to Reproduce

  1. mkdir tf-original
  2. ln -s tf-original tf-symlinked
  3. Create the two files in the hierarchy as shown above inside tf-symlinked
  4. code tf-symlinked
  5. code tf-original/main.tf
  6. Trigger completion for module source
  7. Observe completion candidates

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions