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

Provide completion for inlined schema syntax #559

Closed
apupier opened this issue Oct 21, 2021 · 0 comments · Fixed by #561
Closed

Provide completion for inlined schema syntax #559

apupier opened this issue Oct 21, 2021 · 0 comments · Fixed by #561
Assignees

Comments

@apupier
Copy link
Member

apupier commented Oct 21, 2021

Is your enhancement related to a problem? Please describe.

Discovering of inlined schema is not easy, see redhat-developer/vscode-yaml#567 (comment)

Describe the solution you would like

providing a completion on empty file, or on top of the file when there is no associated schema already would allow to discover the functionality.
completion label: inlined schema which will insert # yaml-language-server: $schema=

Describe alternatives you have considered

Additional context

interestign issue as a follow-up and maybe mix both to trigger automatically the completion for schemas choices in a second time (or use a snippet,)

@apupier apupier self-assigned this Oct 21, 2021
apupier added a commit to apupier/yaml-language-server that referenced this issue Oct 21, 2021
it helps to discover this functionality on yaml files which doesn't have
a schema

Signed-off-by: Aurélien Pupier <apupier@redhat.com>
evidolob pushed a commit that referenced this issue Oct 25, 2021
it helps to discover this functionality on yaml files which doesn't have
a schema

Signed-off-by: Aurélien Pupier <apupier@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant