Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
daddykotex opened this issue Mar 25, 2022 · 0 comments

Comments

@daddykotex
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant