So I was working on a project and today I saw an error about VScode being unable to resolve package.json schema:
CSS contributions to package.json
Problems loading reference
‘vscode://schemas/settings/configurationDefaults’: Unable to load
schema from ‘vscode://schemas/settings/configurationDefaults’: cannot
open vscode://schemas/settings/configurationDefaults. Detail: Unable
to resolve text model content for resource
vscode://schemas/settings/configurationDefaults.
It is somewhat similar to file: 'package.json' severity: 'Warning' message: 'Problems loading reference '': Unable to load schema from '': Unable to to connect to
BUT
the issue is my error is about the local file. I’m wondering why this happened and how I can "undo" this. Some answers revolve around network settings and the one from form linked question suggests adding a schema manually to settings, but I’m not sure why I would have to do that, since it was working fine before.
I can not pinpoint any specific activity before this error appeared.
Any ideas on what could be the cause?
2
Answers
At wits end – I opened the vscode Settings Editor. In the Workspace tab I opened Workbench, and under that selected Settings Editor. In there I found an empty checkbox beside Open Default Settings and checked it. The error went away. I have no idea why, but it seems happier now.
Sometimes, especially during rush hours, the quality of internet connection becomes unsatisfactory, and this error starts to annoy. As a result, I’ve added following string to user settings, and the error was gone:
Unfortunately, another related parameter
json.schemaDownload.enable
has no effect.