Open nguerrera opened 1 year ago
Seems it is possible. See "Mapping a schema in an extension" in https://marketplace.visualstudio.com/items?itemName=redhat.vscode-yaml
we should be able to do it by registering our schema to json schema store https://www.schemastore.org/json/
more investigation needed for the emitter's config
I think schema might not be the right solution here, instead of depending on another extension, we already parse the config as ast so we should be able to provide our own autocomplete there as well
It would be nice if the user got some basic completion and docs when editing tspconfig.yaml. I am not sure, but it's possible that our extension can provide a schema to the yaml extension.
It would be fun if we defined this schema in TypeSpec and built it into JSON schema in the build process. :)