All of my .json files have problems loading reference/schema from schemastore.azurewebsites.net

后端 未结 11 1407
春和景丽
春和景丽 2021-02-05 00:06

I\'m working in VS Code and started getting this error yesterday. All of my json files have this error, not just a few. If I remember right there was an update to the program

11条回答
  •  醉梦人生
    2021-02-05 00:26

    Well i didnt like the idea to set "http.proxyStrictSSL": false, so i started searching, and i found this Issue on SchemaStore site from azure. After seeing this i concluded that my proxy was getting some problem with the certificate and authentication. What i did was change all "https" to "http" in the following session of package.json file(Mine was on this path: C:\Program Files\Microsoft VS Code\resources\app\extensions\typescript-basics\package.json).

    "jsonValidation": [
      {
        "fileMatch": "tsconfig.json",
        "url": "http://schemastore.azurewebsites.net/schemas/json/tsconfig.json"
      },
      {
        "fileMatch": "tsconfig.json",
        "url": "./schemas/tsconfig.schema.json"
      },
      {
        "fileMatch": "tsconfig.*.json",
        "url": "http://schemastore.azurewebsites.net/schemas/json/tsconfig.json"
      },
      {
        "fileMatch": "tsconfig.*.json",
        "url": "./schemas/tsconfig.schema.json"
      },
      {
        "fileMatch": "typings.json",
        "url": "http://schemastore.azurewebsites.net/schemas/json/typings.json"
      }
    ]
    

提交回复
热议问题