跳转到主内容
Visual Studio Code

日志

Visual Studio Code

约 1 分钟

VS Code 问题记录:package.json 报错无法加载 schemastore 校验模式,成因是同源策略拦截 JSON Schema 下载,启用 json.schemaDownload.enable 配置即可解决。

问题记录

Problems loading reference ‘https://json.schemastore.org/package'

在 settings.json 中启用该配置以获取 JSON schemas。

json
// When enabled, JSON schemas can be fetched from http and https locations.
// 启用后,可以从 http 和 https 位置获取 JSON schemas。
"json.schemaDownload.enable": true

插件列表