-
-
Notifications
You must be signed in to change notification settings - Fork 458
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't format Settings.json file #1032
Comments
This comment has been minimized.
This comment has been minimized.
@David-Else Thanks for opening this. Can you share the full log output when you try to save the file. That will help me figure out at what point the issue is happening. Thanks! |
This is the output after trying to save the file and seeing the error.
|
By opening global settings |
So is this only an issue with that one file? If so, I think we can close this issue. |
Edit: Actually, Prettier for VSCode can and does format JSON with Comments, it’s just that VSCode doesn’t allow extensions direct access to Because of that, this is working as intended, but the issue title should be changed. Old comment:
This happens with any file that is configured as “JSON with Comments”, because it has the Prettier can format such files, as it uses a JSON parser that supports comments and trailing commas. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
VS Code Version: 1.39.2
Prettier & Prettier Plugin Version: 3.2.0 using built in Prettier
OS and version: Centos 8
@ntotten I have the output open and when I get the error nothing changes, it does not get to the output. I simply change:
to:
and hit save. I now get a VS Code message appear, not the normal one on the right, but a smaller on on the left that says: (click to zoom)
and the file that won't work:
The text was updated successfully, but these errors were encountered: