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

Investigate getting plugin schemas from "plugins" array #15

Closed
dsherret opened this issue Aug 29, 2021 · 2 comments
Closed

Investigate getting plugin schemas from "plugins" array #15

dsherret opened this issue Aug 29, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@dsherret
Copy link
Member

dsherret commented Aug 29, 2021

I wonder if there's a way to programatically specify the schema for a file with vscode instead of it being specified like "$schema": "https://dprint.dev/schemas/v0.json".

If so, then I could read all the plugins in the plugins array, get their schema urls, and generate a schema on the fly based on that.

Looks like there is this, but it won't work for what's necessary here... need a programmatic API:

https://code.visualstudio.com/api/references/contribution-points#contributes.jsonValidation

@dsherret
Copy link
Member Author

Made a comment here: microsoft/vscode#96120 (comment)

@dsherret
Copy link
Member Author

Looks like this is possible: microsoft/vscode#127812

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant