Skip to content

Better Type/Resource Kind Awareness #1955

Open
@awilkins

Description

@awilkins

Language Server Version

0.36.4

Problem Statement

When I ask for suggestions in a given location
It would be helpful if these were constrained to appropriate possibilities

e.g.

Here we are in an array that only accepts vpc security group IDs

Image

The first suggestion here is a route table, which has no attributes which are appropriate as a value in this array.

There's only one security group in this configuration, and there's an obvious single attribute of this resource that is appropriate. Maximum efficiency would be promoted by listing first, resource attributes that can contain appropriate values for this location.

Image

This obviously requires a greatly expanded set of metadata on not just what basic datatype things have (this is a string / I accept a string) but what "kind" of thing they are (I am a security group ID / I am suppose to receive a security group ID), and it's all quite provider specific. But would represent a significant improvement.

Attempted Solutions

No response

Proposal

No response

Related LSP methods

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

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions