jsonvisual-studio-code

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


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 yesterday or the day before. Did the update break something or reset a setting that I forgot I had set?

When looking this up, people are talking about downloading the schema and using it locally, but I would prefer not to have to do that and would instead like to find out why this broke?

I am using a proxy, but as far as I know that hasn't changed. Here's the exact error I'm getting.

Problems loading reference 'https://schemastore.azurewebsites.net/schemas/json/package.json': Unable to load schema from 'https://schemastore.azurewebsites.net/schemas/json/package.json': Unable to connect to https://schemastore.azurewebsites.net/schemas/json/package.json. Error: connect ECONNREFUSED 168.62.224.13:443


Solution

  • Open User settings of visual studio code through the command palette:

    1. Press F1
    2. Type user settings.
    3. Select Preferences:Open User Settings from drop down
    4. Put below code and modify accordingly:
    "http.proxy": "http://username:password@hostname:port/",
    "http.proxyAuthorization": null,
    "http.proxyStrictSSL": true
    

    enter image description here