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

Made yamlSchemaService accept multiple uris from requestCustomSchema #227

Merged
merged 1 commit into from
Jan 27, 2020

Conversation

JPinkney
Copy link
Contributor

This PR allows the customSchemaProvider to receive multiple uri's, load them, and combine them into one giant schema. The giant schema is a oneOf schema. This technically means that multiple contributors can match a specific file and send a schema back to the language server but only the schema that's matching the current file contents will be used!

@coveralls
Copy link

coveralls commented Jan 24, 2020

Coverage Status

Coverage decreased (-0.1%) to 77.158% when pulling 1def887 on multiple-custom-schemas into 3d79d59 on master.

src/languageservice/services/yamlSchemaService.ts Outdated Show resolved Hide resolved
src/languageservice/services/yamlSchemaService.ts Outdated Show resolved Hide resolved
@JPinkney JPinkney force-pushed the multiple-custom-schemas branch 2 times, most recently from 615001b to 1def887 Compare January 27, 2020 16:10
@gorkem gorkem self-requested a review January 27, 2020 16:17
@JPinkney JPinkney merged commit d1e652e into master Jan 27, 2020
@evidolob evidolob deleted the multiple-custom-schemas branch August 11, 2020 13:19
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