Can't open settings while installing Visual Studio #8170

Closed
opened 2026-01-31 01:22:33 +00:00 by claunia · 1 comment
Owner

Originally created by @MehediH on GitHub (May 15, 2020).

When installing Visual Studio, it sets the IDE as the default application for opening .json files on Windows. As a result, when trying to open the settings from Windows Terminal, Visual Studio throws an error saying it can't be opened. Going into File Explorer and setting Notepad as the default app for opening .json files fixes the issue and the Terminal is able to open the settings.

Expected behavior here would be to have a fallback where the default app for opening .json files does not work, and open it on Notepad instead.

This is not really an issue with Windows Terminal itself, but it could affect the UX where the user may not understand why Windows Terminal is unable to open settings.

screenshot showing Visual Studio error

Originally created by @MehediH on GitHub (May 15, 2020). When installing Visual Studio, it sets the IDE as the default application for opening .json files on Windows. As a result, when trying to open the settings from Windows Terminal, Visual Studio throws an error saying it can't be opened. Going into File Explorer and setting Notepad as the default app for opening .json files fixes the issue and the Terminal is able to open the settings. Expected behavior here would be to have a fallback where the default app for opening .json files does not work, and open it on Notepad instead. This is not really an issue with Windows Terminal itself, but it could affect the UX where the user may not understand why Windows Terminal is unable to open settings. ![screenshot showing Visual Studio error](https://i.imgur.com/qWRWG8q.png)
claunia added the Issue-QuestionNeeds-Tag-FixResolution-Answered labels 2026-01-31 01:22:33 +00:00
Author
Owner

@DHowett-MSFT commented on GitHub (May 15, 2020):

Wow, that's unexpected. Unfortunately, from Terminal's perspective, it has successfully opened the settings file.

It just so happens that the application that said it handled it handled it by popping up a dialog.

Terminal does fall back to Notepad, but when the launched process outright lies to us we can't recover from that ☹️

@DHowett-MSFT commented on GitHub (May 15, 2020): Wow, that's unexpected. Unfortunately, from Terminal's perspective, it _has_ successfully opened the settings file. It just so happens that the application that said it handled it handled it by popping up a dialog. Terminal does fall back to Notepad, but when the launched process outright lies to us we can't recover from that ☹️
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#8170