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

Add methods which allow client get schemas info #556

Merged
merged 5 commits into from
Nov 30, 2021

Conversation

evidolob
Copy link
Collaborator

What does this PR do?

It add LSP methods which allow Client get information about all know schemas and schemas used to validate current file.
That methods allows to build UI for schema selection.

What issues does this PR fix or reference?

redhat-developer/vscode-yaml#565

Is it tested? How?

With tests

@coveralls
Copy link

coveralls commented Oct 19, 2021

Coverage Status

Coverage increased (+0.4%) to 78.589% when pulling 5952b4d on evidolob:new-schema-selection into fcfe397 on redhat-developer:main.

…er into new-schema-selection

Signed-off-by: Yevhen Vydolob <[email protected]>
src/languageservice/utils/schemaUrls.ts Outdated Show resolved Hide resolved
src/languageservice/utils/schemaUrls.ts Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
name: 'Schema name',
description: 'Schema description',
});
});
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should it also have a test for the case where there are no schemas associated.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Signed-off-by: Yevhen Vydolob <[email protected]>
Signed-off-by: Yevhen Vydolob <[email protected]>
@evidolob evidolob requested a review from gorkem November 29, 2021 12:37
…er into new-schema-selection

Signed-off-by: Yevhen Vydolob <[email protected]>
@evidolob evidolob merged commit 520a328 into redhat-developer:main Nov 30, 2021
@evidolob evidolob deleted the new-schema-selection branch November 30, 2021 09:06
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

Successfully merging this pull request may close these issues.

3 participants