You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Does this issue occur when all extensions are disabled?: No (because I am using Prettier to demonstrate), though still this seems to be an issue in VS Code.
VS Code Version: 1.96.4
OS Version: Windows 11
Steps to Reproduce:
When I define my settings.json like this, Prettier IS NOT the formatter used for formatting json files (incorrect behavior):
As far as I understand, the behavior between the two should be exactly the same.
I have tried both "[json][typescriptreact]" and "[typescriptreact][json]", but in neither case will Prettier be the active formatter in JSON files. Only when using the "[json]" language tag on its own it will work.
The text was updated successfully, but these errors were encountered:
Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.96.4. Please try upgrading to the latest version and checking whether this issue remains.
Does this issue occur when all extensions are disabled?: No (because I am using Prettier to demonstrate), though still this seems to be an issue in VS Code.
Steps to Reproduce:
The only difference between the two settings.json snippets is that in the first, the language-specific instructions are combined into one line (as introduced in issue 51935, and documented https://code.visualstudio.com/docs/getstarted/settings#_multiple-languagespecific-editor-settings), while in the second they are defined as separate blocks.
As far as I understand, the behavior between the two should be exactly the same.
I have tried both
"[json][typescriptreact]"
and"[typescriptreact][json]"
, but in neither case will Prettier be the active formatter in JSON files. Only when using the"[json]"
language tag on its own it will work.The text was updated successfully, but these errors were encountered: