-
Notifications
You must be signed in to change notification settings - Fork 5
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
Comments
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. |
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. |
@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. |
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?
The text was updated successfully, but these errors were encountered: