VSCODE设置JSON模式引用对私人GitHub存储库
我目前正在使用Visual Studio代码1.66.2,其中包括GitHub存储库和GitHub拉的请求和已安装的问题。我可以从vscode访问和从我的私人存储库中拉,推动等等,而没有问题。
但是,在编写涉及架构导入的JSON文档时,例如:
{
"$schema": "https://github.com/[company]/[thing]/blob/master/validation/jsonSchema/eor/1-0-0.json",
}
VSCODE声明:
无法从中加载模式 'https://github.com/ [company ]/ [thits/blob/master/validation/jsonschema/eor/1-0-0-0.json': 未找到。找不到所请求的位置。
我认为这是由于存储库是私有的,而Vscode无法访问它,但是鉴于我已授权它用于github访问,我无法弄清楚如何让它看到并引用JSON Schema文件。
我尝试将以下内容添加到VSCODE的设置中
"http.proxy": "http://[username]:[personal access token]@github.com/[company]/[thing].git",
"http.proxyAuthorization": null,
"http.proxyStrictSSL": true
。
任何建议将不胜感激。
I'm currently using Visual Studio Code 1.66.2, with Github Repositories and GitHub Pull Requests and Issues extensions installed. I can pull, push, and so forth to and from my private repository from VSCode without a problem.
However, when writing a JSON document involving a schema import, for example:
{
"$schema": "https://github.com/[company]/[thing]/blob/master/validation/jsonSchema/eor/1-0-0.json",
}
VSCode claims:
Unable to load schema from
'https://github.com/[company]/[thing]/blob/master/validation/jsonSchema/eor/1-0-0.json':
Not Found. The requested location could not be found.
I assume this is due to the repository being private and VSCode not being able to access it, but given that I've authorized it for GitHub access, I haven't been able to figure out how to let it see and reference the JSON schema file.
I've tried adding the following to VSCode's settings.json:
"http.proxy": "http://[username]:[personal access token]@github.com/[company]/[thing].git",
"http.proxyAuthorization": null,
"http.proxyStrictSSL": true
But that just results in endless "Loading..." for the json file in question.
Any suggestions would be greatly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论