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

Missing space after colon with auto-complete #30

Closed
adamaltman opened this issue Apr 24, 2022 · 2 comments
Closed

Missing space after colon with auto-complete #30

adamaltman opened this issue Apr 24, 2022 · 2 comments
Assignees

Comments

@adamaltman
Copy link
Member

adamaltman commented Apr 24, 2022

What happened?

I was writing properties.

type: object
properties:
  myPropName:
    type:

When I selected type I ended up with type: without a trailing space and yaml requires a space after a colon.

This is medium priority because of the frequency (this will happen to me about 100 times today).

This same issue happens with other selections too such as default: etc...

What should have happened instead?

The extension should have had a space. Also, when the space is there, there is a menu to autocomplete the type (e.g. string).

Minimal reproducible OpenAPI snippet

See above.

Screenshots

Short video snippet:

missing-space-vs-code.mp4

Additional context

v0.2.9

@SmoliyY
Copy link

SmoliyY commented May 16, 2022

@adamaltman After each auto-complete we also can trigger next suggestion for value, not only for type. I am not sure if it's will be annoying for user but we can try with that. What do you think?

@SmoliyY SmoliyY closed this as completed May 25, 2022
@adamaltman
Copy link
Member Author

I think that would be cool @SmoliyY (I didn't see this notification -- sorry, I get a lot)

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

No branches or pull requests

2 participants