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

Allow multiple matches for one yaml file with requestCustomSchema #272

Merged
merged 1 commit into from
Jan 27, 2020

Conversation

JPinkney
Copy link
Contributor

This PR allows a yaml file to be matched with multiple contributors.

This is then handled on the yaml language server side by redhat-developer/yaml-language-server#227

*
* @param {string} resource
* @returns {string} the schema uri
*/
public requestCustomSchema(resource: string): string {
public requestCustomSchema(resource: string): string[] {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Similar to server should we keep compatibility by returning string or string[]?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This part is just internal API, it needs to be string[] now so that it can find all matching schema contributes for the given file

@JPinkney JPinkney merged commit f34a627 into master Jan 27, 2020
bleach31 pushed a commit to bleach31/vscode-yaml that referenced this pull request Jan 25, 2022
…esWrongIndentation

Fix required attributes insertion with first array item
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.

2 participants