VSCode 设置对私有 GitHub 存储库的 JSON 架构引用

JSN*_*ice 5 schema json github visual-studio-code

我目前使用的是 Visual Studio Code 1.66.2,安装了 Github 存储库和 GitHub Pull 请求和问题扩展。我可以毫无问题地从 VSCode 向我的私有存储库拉取、推送等。

但是,在编写涉及架构导入的 JSON 文档时,例如:

{
    "$schema": "https://github.com/[company]/[thing]/blob/master/validation/jsonSchema/eor/1-0-0.json",
}
Run Code Online (Sandbox Code Playgroud)

VSCode 声称:

无法从“https://github.com/[company]/[thing]/blob/master/validation/jsonSchema/eor/1-0-0.json”加载架构:未找到。无法找到请求的位置。

我认为这是由于存储库是私有的并且 VSCode 无法访问它,但鉴于我已授权它进行 GitHub 访问,我无法弄清楚如何让它查看和引用 JSON 架构文件。

我尝试将以下内容添加到 VSCode 的 settings.json 中:

"http.proxy": "http://[username]:[personal access token]@github.com/[company]/[thing].git",
"http.proxyAuthorization": null,
"http.proxyStrictSSL": true
Run Code Online (Sandbox Code Playgroud)

但这只会导致相关 json 文件无休止的“正在加载...”。

任何建议将不胜感激。