While working on the CSS for my website, I accidentally triggered a JSON file to open instead of running any of my HTML files. As a result, every time I attempt to run an HTML file, a new tab opens with a message stating "unable to connect to local host." Even when trying to run previous projects, I encounter the same issue of opening a JSON file instead. Is there a solution to this problem?
I attempted to fix the issue by reinstalling VS Code, but unfortunately, that did not resolve the issue.
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: http
//go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"command": "npm start",
"name": "Run npm start",
"request": "launch",
"type": "node-terminal"
},
{
"name": "Launch Chrome",
"request": "launch",
"type": "chrome",
"url": "http://localhost:8080",
"webRoot": "${workspaceFolder}"
},
{
"name": "Attach to Chrome",
"port": 9222,
"request": "attach",
"type": "chrome",
"webRoot": "${workspaceFolder}"
},
]
}