Skip to content

Autocomplete returns only when text matches from beginning #2018

@nicraMarcin

Description

@nicraMarcin

Language Server Version

0.37.0

Terraform Version

Terraform v1.5.7 on darwin_arm64

Client Version

Zed 0.201.8

Terraform Configuration

terraform {
  required_providers {
    aws = {
      source = "hashicorp/aws"
      version = "6.9.0"
    }
  }
}
provider "aws" {
  # Configuration options
}
variable "bucket_name" {
  type = string
}
resource "aws_s3_bucket" "this" {
  bucket = var.bucket_name
}

output "bucket" {
  value = 
}

Steps to Reproduce

  1. Create simple terraform file with was-provider and bucket.
  2. for test we use output
screenrecord2025-09-1.o.15.56.33.mov

Expected Behavior

We could see completions even when text matches to any place in resource. To works like in Jetbrains. the same code as up.

Nagranie.z.ekranu.2025-09-1.o.16.00.49.mov

Actual Behavior

It only shows suggestions when the text matches from the beginning.

Gist

No response

Workarounds

No response

References

No response

Help Wanted

  • I'm interested in contributing a fix myself

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

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