Can't open json from editor

I used to be able to double click on a json file and it would open within the VS solution/project. But I changed it so it would open in Sublime text. Now I want to able able to open it in my project again but it wont. I am getting this error 95205-console.png

I can see it in my solution however, 95206-solution.png

If I change the properties in the explorer (open with… VS) it will open in a totally new window, rather than within my project/solution .

How can I make json files open within the project again?
Thanks in advance.

I’m not sure if this is the same issue your facing but all i did was simply go into the windows explorer. Right click properties and change the application opening json type to visual studio. Then when i tried opening the file from the unity project explorer it opened in visual studio.

Also what i did notice in the Unity 2020.3.22f1 (LTS) edition (not tried on other versions) was that if the json file did not open in the visual studio editor but opened using notepad for example that i would lose the Unity Project explorer tool in visual studio. Which meant that i had to regenerate project files under Unity preferences>external tools.

Just to try make a bump cause I really would like to know how this all works. This is the desired and undesired results i am getting

(Undesired) ![95570-undesired-json.png|131x139](upload://sk3ileYpdwuugUAebHt6VhXRIFo.png) (Desired) ![95571-desired-json.png|127x175](upload://8XRzZC3IFiaVYvimykrhYPSBRZJ.png)

The meta files between them are different however I changed them to be the same with no result and i deleted them so they could regenerate to also so success.

How does this all work?

I have the same problem however it was opening json file in new vs window from the beggining (and not attaching it to unity project it was opened in). After making new json file Unity simply does not detect it as one even though i didn’t clicked anything, just tried to open it.