-
Notifications
You must be signed in to change notification settings - Fork 37.9k
Description
I'm working on an extension that lets users compile Jsonnet files and view them as read-only JSON files.
I would like to add support for JSON Schema to the JSON outputs so that if the output is not valid, VSCode highlights the errors in the output created as a virtual document by the custom content provider.
However; VSCode doesn't seem to validate read-only files so JSON schema validator doesn't work on virtual documents. When I convert the scheme to untitled, the validation does work but since the JSON outputs are idempotent (generated from Jsonnet files), I don't want to give the users the ability to edit/save the JSON output as the output is irrelevant.
I believe that the validation is useful for the read-only files as well. It would be great if we can disable the code actions and make the validation at least optional depending on how the extension creates the virtual documents.