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

Auto-completion by context #5

Open
sbwoodside opened this issue Jul 1, 2017 · 3 comments
Open

Auto-completion by context #5

sbwoodside opened this issue Jul 1, 2017 · 3 comments

Comments

@sbwoodside
Copy link

Would it be possible to have auto-completion based on the YAML context. For example, if I'm typing a key in an associative array, it would complete based on other keys, if I'm typing a value, other values, etc?

@adamvoss
Copy link
Owner

adamvoss commented Jul 1, 2017

Yes, it would be possible. The JSON implementation could be used as a reference for seeing how to interact with the Schema to get suggestions. The Language Server Protocol document is probably the best source for documentation on how the completion API works to know what needs to be implemented.

@vojtechhabarta
Copy link

I know this is hard to implement because parser probably doesn't provide enough information while in the middle of editing but it would be very useful feature.

@JPinkney
Copy link

@sbwoodside @vojtechhabarta In our extension https://marketplace.visualstudio.com/items?itemName=redhat.vscode-yaml we have this feature implemented if you want to try it out.

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

4 participants