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

refactor(vue-json): provide schema with Ls configure #17

Merged
merged 1 commit into from Oct 31, 2022

Conversation

kingyue737
Copy link
Contributor

@kingyue737 kingyue737 commented Oct 31, 2022

We can provide schema with language service configure instead of adding a $schema field by modifying document. This also makes the behavior of this plugin identical to VSCode built-in JSON extension.

This PR also fix an issue by the way. Relative path of schema now bases on the workspace root instead of SFC's folder path.

@johnsoncodehk
Copy link
Member

LGTM, thanks! And I think we can built-in this way to https://github.com/johnsoncodehk/volar/tree/master/plugins/json.

@johnsoncodehk
Copy link
Member

johnsoncodehk commented Oct 31, 2022

Deleted vue-json plugin by ef9be3b, because it was supported in vuejs/language-tools#2079.

@kingyue737 kingyue737 deleted the uri-vue-json branch October 31, 2022 11:39
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.

None yet

2 participants