I am able to link to urls to provide a custom schema e.g.
"https://raw.githubusercontent.com/nicholas-devlin/datadog-yaml-schema/master/kedge-schema.json": "/myKedgeFile.yaml"
It works correctly and does autofill and all that good stuff. But when I try to set it to a local file path:
"/Users/nicholas.devlin/Developer/datadog-yaml-schema/kedge-schema.json": "/myKedgeFile.yaml"
I just get an error like unable to load schema from <path> No content found. Looks like it's coming from this area in the code.
I'm testing this out by just copy/pasting the kedge schema since I know that doesn't have any typos in it.
Yes it is possible. However you have to define the schema relative to the workspace but you can't do an absolute path. See https://github.com/redhat-developer/vscode-yaml/issues/80#issuecomment-380502969.
Awesome thanks. Sorry for not finding that issue earlier, didn't realize I could search through archived.
No worries, perhaps I should make a note of it in the readme regardless though because I think its pretty important!
Yeah, It took me a bit to even understand how the setting worked. It might be helpful to just have a more detailed example of the usage of that setting. I think I saw something in that gif about it, but the gif was like 3 minutes long and i couldn't find the spot again, that should really be split up or just link to a video lol.
Most helpful comment
Yes it is possible. However you have to define the schema relative to the workspace but you can't do an absolute path. See https://github.com/redhat-developer/vscode-yaml/issues/80#issuecomment-380502969.