Skip to content

Typing out enum value in a trait will trigger a pop up until you have the right value #24

Open
@daddykotex

Description

given the following smithy definition

@trait(selector: "service")
structure compat {
  @required
  mode: CompatMode
}
@enum([
  { name: "BACKWARD", value: "BACKWARD" },
  { name: "FORWARD", value: "FORWARD" },
  { name: "NONE", value: "NONE" }
])
string CompatMode

Adding the trait to a service, and typing out {mode: "...NONE"} you'll see tons of popup warning on the bottom right as you type the right value.

Screen Shot 2022-03-25 at 09 37 56

This might also affect completion. We should be able to autocomplete the string, but as of right now, it does not work.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions