I created a brand new file named RequireJS.json
in Visual Studio 2015, and while typing and copying and pasting to build my JSON object, I noticed that VS would continually lock up for around 10-20 seconds at a time. This seemed to happen more often as I switched tabs, then came back to the .json file. I restarted VS, then restarted the computer, but it continued doing this. No other files or file types are lagging like this. Why would this happen only with .json files?
You can open the settings.json file with the Preferences: Open Settings (JSON) command in the Command Palette (Ctrl+Shift+P). Once the file is open in an editor, delete everything between the two curly braces {} , save the file, and VS Code will go back to using the default values.
In Visual Studio Code, use shortcut Ctrl + Shift + P to open the Command Palette and type Open launch. json . And it will open the launch. json file for you.
Since this was only occurring with JSON files, I wondered if it had something to do with Visual Studio's text editor, so I took a look at the VS options under Text Editor -> JSON. I noticed under the "Schema" section, it was pointing to a schema catalog at an external URL (http://schemastore.org/api/json/catalog.json in my case). I unchecked this box, with the thought that VS might be lagging trying to download the file or something, and that must be right because I haven't experienced any VS lags or lockups since unchecking that box.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With